Cosmos/source/FrodeTest/Test/BoolTest.cs

31 lines
714 B
C#

using System;
using System.Collections.Generic;
using System.Text;
namespace FrodeTest.Test
{
public class BoolTest
{
public static void RunTest()
{
//TESTING TRUE/FALSE TOSTRING
bool yes = true;
bool no = false;
Console.WriteLine("true.ToString() gives: " + yes.ToString());
Console.WriteLine("false.ToString() gives: " + no.ToString());
CompareNullReturnFalse();
}
public static bool CompareNullReturnFalse()
{
return (GetNull() != null);
}
public static object GetNull()
{
return null;
}
}
}