Files
GateDge2023_ljy/00.未分类/UnitTestProject3/UnitTest2.cs
PastSaid 9725ab5376 a
2024-12-05 15:39:19 +08:00

37 lines
608 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace UnitTestProject3
{
[TestClass]
public class UnitTest2
{
[TestMethod]
public void TestMethod1()
{
var a = new B();
a.Foo();
}
public class A
{
public virtual void Foo()
{
return;
}
}
public class B : A
{
public override void Foo()
{
//return;
}
}
}
}