Created
November 5, 2014 11:37
Nullable Bools are Dangerous
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[TestFixture] | |
public class NullableBoolsAreDangerous | |
{ | |
[Test] | |
public void Test() | |
{ | |
bool? variable = null; | |
Assert.IsTrue(variable != true); | |
Assert.IsFalse(variable == false); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment