public void MethodHasAttribute_WithNullMethodParametersTypes_Success()
        {
            // Arrange & Act & Assert
            var methodInfo = TypeAssert.MethodHasAttribute <FakeClassModel>(nameof(FakeClassModel.Get), null, typeof(FakeMethodAttribute));

            Assert.NotNull(methodInfo);
            Assert.IsAssignableFrom <MethodInfo>(methodInfo);
        }
        public void MethodHasAttributeGeneric_WithNullMethodParametersTypes_Success()
        {
            // Arrange & Act & Assert
            var attribute = TypeAssert.MethodHasAttribute <FakeClassModel, FakeMethodAttribute>(nameof(FakeClassModel.Get));

            Assert.NotNull(attribute);
            Assert.IsAssignableFrom <FakeMethodAttribute>(attribute);
        }
        public void MethodHasAttributeGeneric_Success()
        {
            // Arrange & Act & Assert
            var attribute = TypeAssert.MethodHasAttribute <FakeClassModel, FakeMethodAttribute>(nameof(FakeClassModel.Get), new[] { typeof(string) });

            Assert.NotNull(attribute);
            Assert.IsAssignableFrom <FakeMethodAttribute>(attribute);
        }
        public void MethodHasAttribute_Success()
        {
            // Arrange & Act & Assert
            var methodInfo = TypeAssert.MethodHasAttribute <FakeClassModel>(nameof(FakeClassModel.Get), new[] { typeof(string) }, typeof(FakeMethodAttribute));

            Assert.NotNull(methodInfo);
            Assert.IsAssignableFrom <MethodInfo>(methodInfo);
        }
 public void MethodHasAttribute_ThrowsNotNullExceptionIfNoMethod()
 {
     // Arrange & Act & Assert
     Assert.Throws <NotNullException>(
         () => TypeAssert.MethodHasAttribute <FakeClassModel>(
             "NoSuchMethod",
             null,
             typeof(FakeMethodAttribute)
             )
         );
 }
 public void MethodHasAttribute_ThrowsTrueExceptionIfNoAttribute()
 {
     // Arrange & Act & Assert
     Assert.Throws <TrueException>(
         () => TypeAssert.MethodHasAttribute <FakeClassModel>(
             nameof(FakeClassModel.Get),
             null,
             typeof(FakeClassAttribute)
             )
         );
 }