DelegateSeries/Study.DelegateSeries.Test/GlobalDelegateTest.cs

19 lines
384 B
C#

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

using System;
using Xunit;
namespace Study.DelegateSeries.Test
{
public class GlobalDelegateTest
{
[Fact]
public void Test1()
{
//不使用using引用名字空间添加对声明程序集的引用即可。
NamespaceLevelDelegate global = new NamespaceLevelDelegate(() => string.Empty);
Assert.NotNull(global.Target);
}
}
}