RulesEngine/test/RulesEngine.UnitTest/CustomTypeProviderTests.cs

46 lines
1.0 KiB
C#

// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using RulesEngine;
using Moq;
using System;
using Xunit;
using System.Diagnostics.CodeAnalysis;
namespace RulesEngine.UnitTest
{
[Trait("Category", "Unit")]
[ExcludeFromCodeCoverage]
public class CustomTypeProviderTests : IDisposable
{
private MockRepository mockRepository;
public CustomTypeProviderTests()
{
this.mockRepository = new MockRepository(MockBehavior.Strict);
}
public void Dispose()
{
this.mockRepository.VerifyAll();
}
private CustomTypeProvider CreateProvider()
{
return new CustomTypeProvider(null);
}
[Fact]
public void GetCustomTypes_StateUnderTest_ExpectedBehavior()
{
// Arrange
var unitUnderTest = this.CreateProvider();
// Act
var result = unitUnderTest.GetCustomTypes();
// Assert
Assert.NotEmpty(result);
}
}
}