public void ShouldReturnSuggestedIdNamePair(FieldNamingHelper sut, ID id, string name) { // act var result = sut.GetFieldIdNamePair(id, name); // assert result.Key.Should().BeSameAs(id); result.Value.Should().Be(name); }
public void ShouldTryToSetFieldIdFromParsedNameIfItIsId(FieldNamingHelper sut, ID id) { // arrange var name = id.ToString(); // act var result = sut.GetFieldIdNamePair(ID.Null, name); // assert result.Key.Should().Be(id); result.Value.Should().Be(name); }
public void ShouldReturnSuggestedIdNamePair(ID id, string name) { // arrange var namingHelper = new FieldNamingHelper(); // act var pair = namingHelper.GetFieldIdNamePair(id, name); // assert pair.Key.Should().BeSameAs(id); pair.Value.Should().Be(name); }