首次提交:本地项目同步到Gitea

This commit is contained in:
zhusenlin
2026-01-24 08:45:54 +08:00
commit 4a6b23db69
256 changed files with 25311 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Io.Github.Kerwinxu.LibShapes.Core;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Io.Github.Kerwinxu.LibShapes.Core.Serialize;
namespace Io.Github.Kerwinxu.LibShapes.Core.Tests
{
[TestClass()]
public class ShapesTests
{
[TestMethod()]
public void DeepCloneTest()
{
// 先测试一个空白的Shape
Shapes shapes = new Shapes();
JsonSerialize jsonSerialize = new JsonSerialize();
string json = jsonSerialize.SerializeObject(shapes);
var shapes2 = jsonSerialize.DeserializeObject<Shapes>(json);
Assert.AreNotEqual(shapes2, null);
//Assert.Fail();
}
}
}