懒得勤快 %!s(int64=4) %!d(string=hai) anos
pai
achega
7a333fdda7

+ 1 - 1
Masuit.Tools.Abstractions/Security/RSACrypt.cs

@@ -168,7 +168,7 @@ namespace Masuit.Tools.Security
             //从字符串中取得Hash描述
             using var md5 = HashAlgorithm.Create("MD5");
             var buffer = Encoding.UTF8.GetBytes(mStrSource);
-            return md5?.ComputeHash(buffer);
+            return md5.ComputeHash(buffer);
         }
 
         /// <summary>

+ 0 - 1
Test/Masuit.Tools.Test/Masuit.Tools.Test.csproj

@@ -123,7 +123,6 @@
     <Compile Include="Mvc\ResumeFileResultTests.cs" />
     <Compile Include="NumberFormaterTest.cs" />
     <Compile Include="Properties\AssemblyInfo.cs" />
-    <Compile Include="Reflection\ClassHelperTest.cs" />
     <Compile Include="RSATest.cs" />
     <Compile Include="TemplateTest.cs" />
   </ItemGroup>

+ 0 - 52
Test/Masuit.Tools.Test/Reflection/ClassHelperTest.cs

@@ -1,52 +0,0 @@
-using Masuit.Tools.Reflection;
-using System.Collections.Generic;
-using Xunit;
-
-namespace Masuit.Tools.Test
-{
-    public class ClassHelperTest
-    {
-        [Fact]
-        public void Can_AddProperty_ReturnNewInstance()
-        {
-            // arrange
-            MyClass myClass = new MyClass();
-
-            // act
-            dynamic newObj = myClass.AddProperty(new List<ClassHelper.CustPropertyInfo>()
-            {
-                new ClassHelper.CustPropertyInfo(typeof(string),"Name","张三"),
-                new ClassHelper.CustPropertyInfo(typeof(int),"Age",20),
-            }).AddProperty("List", new List<string>());
-
-            // act
-            Assert.Equal("张三", newObj.Name);
-            Assert.Equal(20, newObj.Age);
-            Assert.IsType<List<string>>(newObj.List);
-        }
-
-        [Fact]
-        public void Can_RemoveProperty_ReturnNewInstance()
-        {
-            // arrange
-            MyClass myClass = new MyClass()
-            {
-                MyProperty = "aa",
-                Number = 123
-            };
-
-            // act
-            object newObj = myClass.DeleteProperty("MyProperty");
-
-            // act
-            int propertyCount = newObj.GetType().GetProperties().Length;
-            Assert.Equal(1, propertyCount);
-        }
-    }
-
-    public class MyClass
-    {
-        public string MyProperty { get; set; }
-        public int Number { get; set; }
-    }
-}