public void FromWithNullBuilderReturnsNull() { // given, when var obtained = PrivacyConfiguration.From(null); // then Assert.That(obtained, Is.Null); }
private IPrivacyConfiguration NewConfigWith(DataCollectionLevel dataCollectionLevel, CrashReportingLevel crashReportingLevel = ConfigurationDefaults.DefaultCrashReportingLevel) { var builder = Substitute.For <IOpenKitBuilder>(); builder.DataCollectionLevel.Returns(dataCollectionLevel); builder.CrashReportingLevel.Returns(crashReportingLevel); return(PrivacyConfiguration.From(builder)); }