public void AddAnarchyAction_WhenBuilderIsNullExceptionContainsCorrectParameter() { // Act var exception = Assert.Catch(() => MvcCoreBuilderExtensions.AddAnarchyAction <FakeAnarchyAction>(null)); //Assert ((ArgumentNullException)exception).ParamName.Should().Be("services"); }
public void UseAnarchy_WhenBuilderIsNullExceptionIsThrown() { // Act var exception = Assert.Catch(() => MvcCoreBuilderExtensions.UseAnarchy(null)); //Assert exception.Should().BeOfType <ArgumentNullException>(); }
public void UseAnarchy_WhenBuilderIsNullExceptionContainsCorrectParameter() { // Act var exception = Assert.Catch(() => MvcCoreBuilderExtensions.UseAnarchy(null)); //Assert ((ArgumentNullException)exception).ParamName.Should().Be("builder"); }