public void RequiresNonNullOrEmptyName() { ContractAssert.ThrowsArgNullOrEmpty(s => new DiagnosticsService().GetSource(s), "name"); }
public void GivenANullDiagnosticsService_ItShouldThrow() { ContractAssert.ThrowsArgNull(() => new ContentService(new Mock <IFileStorageService>().Object, null), "diagnosticsService"); }
public void GivenANullOrEmptyName_ItShouldThrow() { ContractAssert.ThrowsArgNullOrEmpty(s => new TestableContentService().GetContentItemAsync(s, TimeSpan.Zero).Wait(), "name"); }
public void GivenANullOrEmptyExtension_ItShouldThrow() { ContractAssert.ThrowsArgNullOrEmpty(s => new TestableContentService().GetContentItemAsync("test", null, TimeSpan.Zero).Wait(), "extension"); }