Exemple #1
0
        public void EqualsObjectCastTest()
        {
            string name = "test-name";
            NormalizedDatasourceGroupCountry normalizedDatasourceGroupCountry = new NormalizedDatasourceGroupCountry(name: name);
            object obj = new NormalizedDatasourceGroupCountry(name: name);

            Assert.True(normalizedDatasourceGroupCountry.Equals(obj));
        }
Exemple #2
0
        public void EqualsTest()
        {
            string name = "test-name";
            NormalizedDatasourceGroupCountry name1 = new NormalizedDatasourceGroupCountry(name: name);

            Assert.Equal(name1, name1);
            Assert.Equal(name1, new NormalizedDatasourceGroupCountry(name: name));
            Assert.NotEqual(name1, new NormalizedDatasourceGroupCountry(name: name + "1"));
            Assert.False(name1.Equals(null));
        }