public void TryGetIncomingLabel_Should_Return_True_For_Existing_Code() { const int Zero = 0x0000; var table = new TestTable(); table.AddIn(Zero, "Zero"); string s; table.TryGetIncomingLabel(Zero, out s).Should().BeTrue(); }
public void TryGetIncomingLabel_Should_Return_False_For_Missing_Code() { const int Zero = 0x0000; const int One = 0x0001; var table = new TestTable(); table.AddIn(Zero, "Zero"); string s; table.TryGetIncomingLabel(One, out s).Should().BeFalse(); }
public void TryGetIncomingLabel_Should_Retrieve_Correct_Label() { const int One = 0x0001; const string OneString = "One"; var table = new TestTable(); table.AddIn(One, OneString); string label; table.TryGetIncomingLabel(One, out label); label.Should().Be(OneString); }