public void TwoParamConstructorSetsPropertiesRight(string serviceName, string displayName) { var sut = new ServiceSettings(serviceName, displayName); var expected = new ServiceSettingResult {ServiceName = serviceName, DisplayName = displayName}; sut.AsSource().OfLikeness<ServiceSettingResult>().Equals(expected); }
public void ThreeParamConstructorSetsPropertiesRight(string serviceName, string displayName, string description) { var sut = new ServiceSettings(serviceName, displayName, description); var expected = new ServiceSettingResult { ServiceName = serviceName, DisplayName = displayName, Description = description }; sut.AsSource().OfLikeness <ServiceSettingResult>().Equals(expected); }