예제 #1
0
 public void IsFalseStringTest()
 {
     Assert.AreEqual(F, Booleans.IsFalseString(null));
     Assert.AreEqual(F, Booleans.IsFalseString(GetRandom.String()));
     Assert.AreEqual(T, Booleans.IsFalseString(F.ToString()));
     Assert.AreEqual(F, Booleans.IsFalseString(T.ToString()));
     Assert.AreEqual(T, Booleans.IsFalseString("f"));
     Assert.AreEqual(F, Booleans.IsFalseString("t"));
     Assert.AreEqual(T, Booleans.IsFalseString("no"));
     Assert.AreEqual(F, Booleans.IsFalseString("yes"));
     Assert.AreEqual(T, Booleans.IsFalseString("n"));
     Assert.AreEqual(F, Booleans.IsFalseString("y"));
 }