Exemple #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);
        }
Exemple #2
0
 public void AssertFalseThrowsExceptionWhenTrue()
 {
     try
     {
         Assert.False(true);
     }
     catch (AssertException exception)
     {
         Assert.Equal("Assert.False() Failure", exception.UserMessage);
     }
 }
Exemple #3
0
 public void AssertFalse()
 {
     Assert.False(false);
 }