public void Library_NoComponentSpecificNamespaces() =>
 // Note: If this test fails, the other one in this file will fail as well
 // but let's have the double protection.
 CodeHealthTester.AssertNoDisallowedNamespaces(
     typeof(IConsumer <>),
     "Google.Cloud.Diagnostics.Common.ErrorReporting",
     "Google.Cloud.Diagnostics.Common.Logging",
     "Google.Cloud.Diagnostics.Common.Trace");
 public void Library_NoComponentSpecificNamespaces() =>
 // Note: If this test fails, the other one in this file will fail as well
 // but let's have the double protection.
 CodeHealthTester.AssertNoDisallowedNamespaces(
     typeof(AspNetCoreErrorReportingExtensions),
     BaseNamespace + ".ErrorReporting",
     BaseNamespace + ".Logging",
     BaseNamespace + ".Trace");
Exemple #3
0
 public void Library_NoComponentSpecificNamespaces() =>
 // Note: If this test fails, the other one in this file will fail as well
 // but let's have the double protection.
 CodeHealthTester.AssertNoDisallowedNamespaces(
     typeof(GoogleDiagnosticsStartupFilter),
     BaseNamespace + ".ErrorReporting",
     BaseNamespace + ".Logging",
     BaseNamespace + ".Trace");
Exemple #4
0
 public void SealedClasses()
 {
     CodeHealthTester.AssertClassesAreSealedOrAbstract(typeof(TranslationClient));
 }
Exemple #5
0
 public void PrivateFields()
 {
     CodeHealthTester.AssertAllFieldsPrivate(typeof(TranslationClient));
 }
Exemple #6
0
 public void SealedClasses()
 {
     CodeHealthTester.AssertClassesAreSealedOrAbstract(typeof(StorageClient));
 }
Exemple #7
0
 public void PrivateFields()
 {
     CodeHealthTester.AssertAllFieldsPrivate(typeof(StorageClient));
 }
 public void Library_OnlyAspNetCoreNamespace() =>
 CodeHealthTester.AssertOnlyAllowedNamespaces(
     typeof(AspNetCoreErrorReportingExtensions), BaseNamespace);
Exemple #9
0
 public void SealedClasses()
 {
     // Query is neither sealed nor abstract, deliberately: CollectionReference derives from it, and
     // it creates new instances of itself.
     CodeHealthTester.AssertClassesAreSealedOrAbstract(typeof(FirestoreDb), new[] { typeof(Query) });
 }
Exemple #10
0
 public void PrivateFields()
 {
     CodeHealthTester.AssertAllFieldsPrivate(typeof(FirestoreDb));
 }
Exemple #11
0
 public void PrivateFields()
 {
     CodeHealthTester.AssertAllFieldsPrivate(typeof(BigqueryClient));
 }
 public void Library_OnlyCommonNamespace() =>
 CodeHealthTester.AssertOnlyAllowedNamespaces(
     typeof(IConsumer <>), "Google.Cloud.Diagnostics.Common");
Exemple #13
0
 public void Library_OnlyAspNetCoreNamespace() =>
 CodeHealthTester.AssertOnlyAllowedNamespaces(
     typeof(GoogleDiagnosticsStartupFilter), BaseNamespace);