|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
using InterfaceStudy.Core;
|
|
|
|
|
|
|
|
|
|
using Xunit;
|
|
|
|
|
|
|
|
|
|
namespace InterfaceStudy.Test
|
|
|
|
|
{
|
|
|
|
|
public class ChildATest
|
|
|
|
|
{
|
|
|
|
|
[Fact]
|
|
|
|
|
public void Test()
|
|
|
|
|
{
|
|
|
|
|
IBase a = new ChildA();
|
|
|
|
|
|
|
|
|
|
var number = a.GetNumber();
|
|
|
|
|
|
|
|
|
|
Assert.Equal(-2,number);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|