Example #1
0
        public void WriteBasicTagToJsonWorks()
        {
            // Arrange
            string expect = @"
{
  ""name"": ""Default Name""
}".Replace();

            // Act & Assert
            Assert.Equal(expect, BasicTag.WriteToJson());
        }
Example #2
0
        public void WriteAdvanceTagToJsonWorks()
        {
            // Arrange
            string expect = @"
{
  ""name"": ""pet"",
  ""description"": ""Pets operations"",
  ""externalDocs"": {
    ""description"": ""Find more info here"",
    ""url"": ""https://example.com""
  }
}"
                            .Replace();

            // Act & Assert
            Assert.Equal(expect, AdvanceTag.WriteToJson());
        }