2017-11-15 00:40:27 +01:00
|
|
|
|
// ------------------------------------------------------------
|
|
|
|
|
// 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;
|
|
|
|
|
|
2017-11-21 23:47:38 +01:00
|
|
|
|
namespace Microsoft.OpenApi.OData.Generator.Tests
|
2017-11-15 00:40:27 +01:00
|
|
|
|
{
|
|
|
|
|
public class OpenApiParameterGeneratorTest
|
|
|
|
|
{
|
|
|
|
|
[Fact]
|
|
|
|
|
public void CreateParametersThrowArgumentNull()
|
|
|
|
|
{
|
|
|
|
|
// Arrange
|
|
|
|
|
IEdmModel model = null;
|
|
|
|
|
|
|
|
|
|
// Act & Assert
|
|
|
|
|
Assert.Throws<ArgumentNullException>("model", () => model.CreateParameters());
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|