public void Parse_ShouldReturnDefaultFieldWhenUnableToMatchAFieldOnValue() { var expected = TestField.Field1; TestField actual = TestField.Parse(0x99, TestField.Field1); Assert.Same(expected, actual); }
public void Parse_ShouldReturnFirstFieldThatMatchesTheGivenValue() { var expected = TestField.Field2; TestField actual = TestField.Parse(expected.Value, TestField.Field1); Assert.Same(expected, actual); }