示例#1
0
 public void Check_IsValid_With_Valid_Input()
 {
     Assert.True(ApiHttpMethods.IsValid(ApiHttpMethods.Get));
     Assert.True(ApiHttpMethods.IsValid(ApiHttpMethods.Put));
     Assert.True(ApiHttpMethods.IsValid(ApiHttpMethods.Post));
     Assert.True(ApiHttpMethods.IsValid(ApiHttpMethods.Delete));
 }
示例#2
0
 public void CheckCountValue()
 {
     Assert.Equal(ApiHttpMethods.ToList().Count, ApiHttpMethods.Count);
 }
示例#3
0
 public void Check_IsValid_With_Invalid_Input()
 {
     Assert.False(ApiHttpMethods.IsValid("some invalid text"));
 }