Exemple #1
0
        public void DoesNotEqualWithDifferentName()
        {
            var anotherRegion = Region;

            anotherRegion.Name = "differentName";
            var anotherRegionModel = new RegionDetailedInfoModel(anotherRegion);

            Assert.IsFalse(RegionDetailedInfoModel.Equals(anotherRegionModel));
        }
Exemple #2
0
 public void TestInitialize()
 {
     Region = new Region
     {
         Id             = 1,
         Name           = "region 1",
         Description    = "aDescription",
         VideoPath      = "aVideoPath",
         MapYellow      = new byte[] { 0x20, 0x20, 0x20, 0x20, 0x20, 0x20 },
         MapTransparent = new byte[] { 0x20, 0x20, 0x20, 0x20, 0x20, 0x20 }
     };
     RegionDetailedInfoModel = new RegionDetailedInfoModel(Region);
 }
Exemple #3
0
        public void EqualsAnotherWithSameIdAndName()
        {
            var anotherRegionModel = new RegionDetailedInfoModel(Region);

            Assert.IsTrue(RegionDetailedInfoModel.Equals(anotherRegionModel));
        }