Beispiel #1
0
        public void Equals_DifferentDependenciesLength_AreNotEqual()
        {
            // arrange
            PluginsConfigXml configOne = new PluginsConfigXml();
            PluginsConfigXml configTwo = new PluginsConfigXml();
            FileXml file = new FileXml();
            file.Location = System.IO.Path.GetDirectoryName( System.Reflection.Assembly.GetExecutingAssembly().Location );
            configOne.PlugIns = new System.Collections.ObjectModel.Collection<FileXml>();
            configOne.PlugIns.Add( file );
            configTwo.PlugIns = new System.Collections.ObjectModel.Collection<FileXml>();
            configTwo.PlugIns.Add( file );
            configTwo.PlugIns.Add( file );
            bool areEqual;

            // act
            areEqual = configOne.Equals( configTwo );

            // assert
            Assert.IsFalse( areEqual );
        }
Beispiel #2
0
        public void Equals_OtherType_AreNotEqual()
        {
            // arrange
            PluginsConfigXml config = new PluginsConfigXml();
            string other = "notaconfig";
            bool areEqual;

            // act
            areEqual = config.Equals( other );

            // assert
            Assert.IsFalse( areEqual );
        }