public void Ctor_WhenCalled_SetsCommandServiceTypeProperty() { // arrange, act var sut = new CommandDependencyNotRegisteredException(typeof(ISampleService)); // assert Assert.Equal(typeof(ISampleService), sut.CommandServiceType); }
public void Ctor_WhenCalled_SetsMessageProperty() { // arrange, act var sut = new CommandDependencyNotRegisteredException(typeof(ISampleService)); // assert Assert.Equal("Command dependency implementing Chel.UnitTests.Services.ISampleService has not been registered", sut.Message); }