public void ResolvesCorrectSnakeCaseNames() { var resolver = new SnakeCasePropertyNamesContractResolver(); foreach (var kvp in TestCases) { var result = resolver.GetResolvedPropertyName(kvp.Key); Assert.AreEqual(kvp.Value, result, "{0} should resolve to {1}", kvp.Key, kvp.Value); } }
public void ResolvesName(string snake, string expected) { var actual = sut.GetResolvedPropertyName(snake); actual.Should().BeEquivalentTo(expected); }