public void Compare_Work_Correct(string firstValue, string secondValue, int expectedResult) { var row1 = new LeftPartRow(firstValue); var row2 = new LeftPartRow(secondValue); Assert.AreEqual(expectedResult, row1.CompareTo(row2)); }
public void Create_With_Rank_Correct(int rank) { var leftPart = LeftPartRow.GetRandom(rank); Assert.AreEqual(rank, leftPart.Value.Length); }
public void Create_With_Zero_Rank_Generate_Exception() { Assert.Throws <ArgumentOutOfRangeException>(() => LeftPartRow.GetRandom(0)); }