Example #1
0
        public void FromWithNullBuilderReturnsNull()
        {
            // given, when
            var obtained = PrivacyConfiguration.From(null);

            // then
            Assert.That(obtained, Is.Null);
        }
Example #2
0
        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));
        }