public void Should_Return_True()
 {
     Assert.True(DataWorks.IsBracketsBalanced("()"));
     Assert.True(DataWorks.IsBracketsBalanced("(())"));
     Assert.True(DataWorks.IsBracketsBalanced("(())"));
     Assert.True(DataWorks.IsBracketsBalanced("()()"));
 }
 public void Should_Throw_Exception()
 {
     Assert.Throws <ArgumentException>(() => DataWorks.IsBracketsBalanced(""));
 }
 public void Should_Return_False()
 {
     Assert.False(DataWorks.IsBracketsBalanced("()("));
     Assert.False(DataWorks.IsBracketsBalanced(")()"));
 }
Beispiel #4
0
 public void ZeroAsString()
 {
     Assert.Equal(0, DataWorks.RomanToInt("0"));
 }
Beispiel #5
0
 public void WithNotValidChars(int expected, string romanValue)
 {
     Assert.Equal(expected, DataWorks.RomanToInt(romanValue));
 }
Beispiel #6
0
 public void ValidValues_Ok(int expected, string romanValue)
 {
     Assert.Equal(expected, DataWorks.RomanToInt(romanValue));
 }