1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
|
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
namespace Microsoft.DbContextPackage.Extensions
{
using Microsoft.VisualStudio.ComponentModelHost;
using Moq;
using Xunit;
public class IComponentModelExtensionsTests
{
[Fact]
public void GetService_calls_generic_version()
{
var componentModelMock = new Mock<IComponentModel>();
var componentModel = componentModelMock.Object;
componentModel.GetService(typeof(string));
componentModelMock.Verify(cm => cm.GetService<string>(), Times.Once());
}
}
}
|