Пример #1
0
 public void WillReturnCorrectValueForEqualNumberOfParts01()
 {
     MultiPartScore one = new MultiPartScore(new double[] { 2.1d, 2.1d });
     MultiPartScore two = new MultiPartScore(new double[] { 1.1d, 2.1d });
     Assert.Equal(1, one.CompareTo(two));
     Assert.Equal(-1, two.CompareTo(one));
 }
Пример #2
0
 public void WillReturnCorrectValueForEqualNumberOfParts3()
 {
     MultiPartScore one = new MultiPartScore(new double[] { 1.1d, 2.2d, 0.5d, 57.9d, 100.545d });
     MultiPartScore two = new MultiPartScore(new double[] { 1.1d, 2.2d, 0.5d, 56.9d, 100.545d });
     Assert.Equal(1, one.CompareTo(two));
     Assert.Equal(-1, two.CompareTo(one));
 }
Пример #3
0
 public void WillReturn0ForEqual()
 {
     MultiPartScore one = new MultiPartScore(new double[] { 1.1d, 2.1d });
     MultiPartScore two = new MultiPartScore(new double[] { 1.1d, 2.1d });
     Assert.Equal(0, one.CompareTo(two));
     Assert.Equal(0, two.CompareTo(one));
 }