예제 #1
0
        public void NotEqualWithCustomComparer()
        {
            string expected = "TestString";
            string actual   = "testString";

            Assert.False(actual == expected);
            Assert.Equal(expected, actual, StringComparer.CurrentCultureIgnoreCase);
            Assert.NotEqual(expected, actual, StringComparer.CurrentCulture);
        }
예제 #2
0
 public void AssertFalseThrowsExceptionWhenTrue()
 {
     try
     {
         Assert.False(true);
     }
     catch (AssertException exception)
     {
         Assert.Equal("Assert.False() Failure", exception.UserMessage);
     }
 }
예제 #3
0
 public void AssertFalse()
 {
     Assert.False(false);
 }