public void JToken_GuidFormatter_Formatting() { var formatter = new GuidFormatter(); var result = formatter.Format(SampleTokens.Guid.Token, 0); Assert.Single(result); Assert.True(result.ContainsKey(string.Empty), "Should have a single, empty key"); Assert.Equal(SampleTokens.Guid.Value.ToString(), result[string.Empty]); }
public void GuidFormatter() { var testGuid = new Guid("DF0187E1-E1EB-4A9F-A528-4AFEBFECF4A5"); var formatter = new GuidFormatter(); var result = formatter.Format(testGuid, 0); Assert.Single(result); Assert.True(result.ContainsKey(string.Empty), "Should have a single, empty key"); Assert.Equal("df0187e1-e1eb-4a9f-a528-4afebfecf4a5", result[string.Empty]); }