Esempio n. 1
0
        public void CredentialsAreDifferent_False()
        {
            // arrange
            var firstServer  = new Application.Servers.Server("AAA", 100);
            var secondServer = new Application.Servers.Server("ZZZ", 555);

            // act
            var areEqual = firstServer == secondServer;

            // assert
            areEqual.Should().BeFalse();
        }
Esempio n. 2
0
        public void CredentialsAreEqual_True()
        {
            // arrange
            var firstServer  = new Application.Servers.Server("AAA", 100);
            var secondServer = new Application.Servers.Server("AAA", 100);

            // act
            var areEqual = firstServer == secondServer;

            // assert
            areEqual.Should().BeTrue();
        }