OpenAPI.NET.OData/test/Microsoft.OpenAPI.OData.Reader.Tests/Generator/OpenApiParameterGeneratorTests.cs
2017-11-21 14:47:38 -08:00

24 lines
729 B
C#

// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See LICENSE in the repo root for license information.
// ------------------------------------------------------------
using System;
using Microsoft.OData.Edm;
using Xunit;
namespace Microsoft.OpenApi.OData.Generator.Tests
{
public class OpenApiParameterGeneratorTest
{
[Fact]
public void CreateParametersThrowArgumentNull()
{
// Arrange
IEdmModel model = null;
// Act & Assert
Assert.Throws<ArgumentNullException>("model", () => model.CreateParameters());
}
}
}