public void TestGetValue() { // Arrange var columnInfo = new FullAddressColumnInfo { IsNullable = false }; var strategy = new FullAddressColumnValueStrategy(RepoFactory); // Act string value = strategy.GetValue(columnInfo); // Assert Assert.IsTrue(value.Contains(regionName)); Assert.IsTrue(value.Contains(cityName)); }
public void TestGetValue_WithMaxLengthRestriction() { // Arrange const int maxLength = 8; // Arrange var columnInfo = new FullAddressColumnInfo { IsNullable = false, MaxLength = maxLength }; var strategy = new FullAddressColumnValueStrategy(RepoFactory); // Act string value = strategy.GetValue(columnInfo); // Assert Assert.AreEqual(maxLength, value.Length); }