Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

22 lines
712 B
C#

// 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());
}
}
}