예제 #1
0
        public void Equality_with_equals()
        {
            var env   = new EnvironmentInfo("development", "framework", "assembly", "entry", "time", "machine", "OS", "OS version", "x64", "x64", "4");
            var other = new EnvironmentInfo("development", "framework", "assembly", "entry", "time", "machine", "OS", "OS version", "x64", "x64", "4");

            env.Equals(other).Should().Be(true);
        }
예제 #2
0
        public void equality_with_equals()
        {
            var env   = new EnvironmentInfo("assembly", "entry", "host", "time", "machine", "OS", "OS version", "process", "4");
            var other = new EnvironmentInfo("assembly", "entry", "host", "time", "machine", "OS", "OS version", "process", "4");

            env.Equals(other).Should().Be(true);
        }
예제 #3
0
        public void equality_with_equals_false_when_same_object()
        {
            var env = new EnvironmentInfo("assembly", "entry", "host", "time", "machine", "OS", "OS version", "process", "4");

            object other = env;

            env.Equals(other).Should().Be(true);
        }