Exemple #1
0
 public void GetBooleanFromYesNo_ReturnsCorrectBoolean()
 {
     Assert.True(AttributeHelpers.GetBooleanFromYesNo("YES"));
     Assert.False(AttributeHelpers.GetBooleanFromYesNo("NO"));
     Assert.Null(AttributeHelpers.GetBooleanFromYesNo(""));
     Assert.Null(AttributeHelpers.GetBooleanFromYesNo(null));
     Assert.Null(AttributeHelpers.GetBooleanFromYesNo("SOME_RANDOM_STRING"));
 }