コード例 #1
0
        public override bool Equals(System.Object obj)
        {
            XmlIfOnEdgeBounceBrick b = obj as XmlIfOnEdgeBounceBrick;

            if ((object)b == null)
            {
                return(false);
            }

            return(this.Equals(b));
        }
コード例 #2
0
        public void XmlIfOnEdgeBounceBrickTest()
        {
            TextReader sr = new StringReader("<brick type=\"IfOnEdgeBounceBrick\"/>");
            var xRoot = XElement.Load(sr);

            var testObject = new XmlIfOnEdgeBounceBrick(xRoot);

            var referenceObject = new XmlIfOnEdgeBounceBrick(xRoot);

            Assert.AreEqual(referenceObject, testObject);
        }
コード例 #3
0
 public bool Equals(XmlIfOnEdgeBounceBrick b)
 {
     return this.Equals((XmlBrick)b);
 }
コード例 #4
0
 public bool Equals(XmlIfOnEdgeBounceBrick b)
 {
     return(this.Equals((XmlBrick)b));
 }