OpenAPI.NET.OData/test/Microsoft.OpenAPI.OData.Reader.Tests/OpenApiParameterGeneratorTests.cs

25 lines
719 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.Tests
{
public class OpenApiParameterGeneratorTest
{
[Fact]
public void CreateParametersThrowArgumentNull()
{
// Arrange
IEdmModel model = null;
// Act & Assert
Assert.Throws<ArgumentNullException>("model", () => model.CreateParameters());
}
}
}