public void OnImportsSatisfied_WhenCalled_SubscribesToClientConnectedNotification() { //Arrange var vm = new LicenseInfoViewModel(); var communicationServiceMock = Mock.Create<ICommunicationService>(); vm.CommunicationService = communicationServiceMock; Mock.ArrangeSet(() => communicationServiceMock.ClientConnectedNotification += null).IgnoreArguments().OccursOnce(); vm.OnImportsSatisfied(); //Assert Mock.AssertAll(communicationServiceMock); }
public void PropertiesTest() { var vm = new LicenseInfoViewModel(); TestsHelper.TestPublicPropertiesGetSet(vm, x => vm.Model, x => vm.Icon); }