Beispiel #1
0
 public void ShouldReturnFalseWhenGivenArraysAreNotEqualLength()
 {
     Assert.False(AreTheySame.Compute(new[] { 1 }, new int[] { }));
 }
Beispiel #2
0
 public void ShouldReturnFalseWhenEitherGivenArraysAreNull()
 {
     Assert.False(AreTheySame.Compute(null, null));
 }
Beispiel #3
0
 public void ShouldReturnTrueWhenEitherGivenArraysAreEmpty()
 {
     Assert.True(AreTheySame.Compute(new int[] { }, new int[] { }));
 }
Beispiel #4
0
 public void ShouldDisplayIfOneOfTwoGivenArraysIsTheSquaresOfTheOther(int[] arrayOne, int[] arrayTwo,
                                                                      bool expected)
 {
     Assert.Equal(expected, AreTheySame.Compute(arrayOne, arrayTwo));
 }