public void Should_not_throw_when_null_passed_as_modulepath() { // Given var moduleWithNullPath = new CustomModulePathModule(null); // Then Assert.DoesNotThrow(() => { moduleWithNullPath.Post["/Test1"] = d => null; }); }
public void Should_not_throw_when_null_passed_as_modulepath() { // Given var moduleWithNullPath = new CustomModulePathModule(null); // When var result = moduleWithNullPath.Post["/Test1"] = async(_, __) => null; // Then Assert.NotNull(result); }
public void Should_not_throw_when_null_passed_as_modulepath() { // Given var moduleWithNullPath = new CustomModulePathModule(null); // When moduleWithNullPath.Post <object>("/Test1", (_, __) => null); // Then moduleWithNullPath.Routes.Count().ShouldBeGreaterThan(0); }
public void Should_not_throw_when_null_passed_as_modulepath() { // Given var moduleWithNullPath = new CustomModulePathModule(null); // When var result = moduleWithNullPath.Post["/Test1"] = d => null; // Then Assert.NotNull(result); }
public void Should_not_throw_when_null_passed_as_modulepath() { // Given var moduleWithNullPath = new CustomModulePathModule(null); // When moduleWithNullPath.Post<object>("/Test1", (_, __) => null); // Then moduleWithNullPath.Routes.Count().ShouldBeGreaterThan(0); }