a
This commit is contained in:
36
00.未分类/UnitTestProject3/UnitTest2.cs
Normal file
36
00.未分类/UnitTestProject3/UnitTest2.cs
Normal file
@@ -0,0 +1,36 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user