public void Should_throw_a_NotFoundException_indicating_the_identifer_could_not_be_found() { ActualException.ShouldNotBeNull(); ActualException.ShouldBeExceptionType<NotFoundException>(); ActualException.Message.ShouldContain("identifier"); ActualException.Message.ShouldContain("could not be found"); }
public void Should_throw_a_MissingMember_exception_with_missing_members_and_associated_types_listed_in_the_message() { ActualException.ShouldBeExceptionType <MissingMemberException>(); ActualException.MessageShouldContain("NonExistingSourcePropertyName"); ActualException.MessageShouldContain("NonExistingTargetPropertyName"); ActualException.MessageShouldContain(typeof(EntityWithRoleNamedProperties).FullName); ActualException.MessageShouldContain(typeof(RelationshipsAuthorizationContextData).FullName); }
public void Should_throw_an_EdFiSecurityException_related_to_the_missing_API_key_context() { ActualException.ShouldBeExceptionType <EdFiSecurityException>(); ActualException.MessageShouldContain("API key"); }
public void Should_generate_17576_unique_aliases_before_throwing_an_InvalidOperationException() { _actualAliases.Count.ShouldBe(26 * 26 * 26); ActualException.ShouldBeExceptionType <InvalidOperationException>(); }
public void Should_throw_an_exception_for_Profiles_that_dont_exist() { Assert.That(ActualException, Is.Not.Null); ActualException.ShouldBeExceptionType <KeyNotFoundException>(); }
public void Should_throw_an_exception() { ActualException.ShouldBeExceptionType <ArgumentException>(); }
public void Should_throw_a_NotSupportedException_indicating_the_type_is_not_handled() { ActualException.ShouldNotBeNull(); ActualException.ShouldBeExceptionType<NotSupportedException>(); ActualException.Message.ShouldContain("Unhandled"); }
public void Should_throw_a_security_exception_indicating_there_were_no_claim_values_available() { ActualException.ShouldBeExceptionType <EdFiSecurityException>(); }
public void Should_throw_a_NotImplementedException_indicating_the_interface_was_not_implemented() { ActualException.ShouldBeExceptionType <NotImplementedException>(); ActualException.Message.ShouldContain("did not implement"); }
public void Should_throw_an_EdFiSecurityException_indicating_the_claims_did_not_provide_authorization_for_the_request() { ActualException.ShouldBeExceptionType <EdFiSecurityException>(); ActualException.MessageShouldContain("Access to the requested"); }
public void Should_throw_an_AuthorizationContextException_with_action_in_the_message() { ActualException.ShouldBeExceptionType <AuthorizationContextException>(); ActualException.Message.ShouldContain("resource"); }
public virtual void Should_throw_argument_exception_when_RegisterAggregateExtensionEntity_is_called() { AssertHelper.All( () => ActualException.ShouldBeExceptionType <ArgumentException>(), () => ActualException.MessageShouldContain("edFiStandardEntityType is not an entity Type.")); }
public virtual void ArgumentException_should_be_thrown_when_Register_Extension_Type_Is_Called() { AssertHelper.All( () => ActualException.ShouldBeExceptionType <ArgumentException>(), () => ActualException.MessageShouldContain("is not an entity Type")); }
public void Should_throw_argument_exception_for_empty_extension_name() { ActualException.ShouldBeExceptionType <ArgumentNullException>(); }