コード例 #1
0
    public void TryHitHitSource()
    {
        var hitter = new HitSource();
        var source = new MockClass();

        hitter.Try(source, out var target);
        Assert.AreSame(source, target);
    }
コード例 #2
0
    public void TryHitReturnsTrue()
    {
        var hitter = new HitSource();

        Assert.True(hitter.Try(default(MockClass), out _));
    }