Пример #1
0
        public void WriteBasicInfoToYaml()
        {
            // Arrange
            string expect = @"
title: Sample OData Book Store App
description: This is a sample OData server for a book store.
termsOfService: http://services.odata.org/
version: 1.0.1
".Replace();

            // Act & Assert
            Assert.Equal(expect, BasicInfo.WriteToYaml());
        }
Пример #2
0
        public void WriteAdvanceInfoToYaml()
        {
            // Arrange
            string expect = @"
title: Sample Pet Store App
description: This is a sample server for a pet store.
termsOfService: http://example.com/terms/
contact:
  name: API Support
  url: http://www.example.com/support
  email: [email protected]
license:
  name: Apache 2.0
  url: http://www.apache.org/licenses/LICENSE-2.0.html
version: 1.0.1
".Replace();

            // Act & Assert
            Assert.Equal(expect, AdvanceInfo.WriteToYaml());
        }