Exemplo n.º 1
0
    private static void VerifyEquality(FrameworkName x, FrameworkName y)
    {
        Assert.NotNull(x);

        Assert.True(x == y);
        Assert.False(x != y);
        Assert.True(x.Equals(y));
        Assert.True(((IEquatable <FrameworkName>)x).Equals(y));
        Assert.Equal(x.GetHashCode(), y.GetHashCode());
    }
Exemplo n.º 2
0
    private static void VerifyEquality(FrameworkName x, FrameworkName y)
    {
        Assert.NotNull(x);

        Assert.True(x == y);
        Assert.False(x != y);
        Assert.True(x.Equals(y));
        Assert.True(((IEquatable<FrameworkName>)x).Equals(y));
        Assert.Equal(x.GetHashCode(), y.GetHashCode());
    }
Exemplo n.º 3
0
 public override int GetHashCode()
 {
     return(FrameworkName.GetHashCode());
 }