public void LongitudeValueTest() { GeoAnchor target = new GeoAnchor(); float expected = 1F; target.LongitudeValue = expected; float actual = target.LongitudeValue; Assert.AreEqual(expected, actual); }
public void IsNotEmptyTest() { GeoAnchor target = new GeoAnchor(); PrivateObject po = new PrivateObject(target); GeoAnchor_Accessor targetAccessor = new GeoAnchor_Accessor(po); Assert.IsFalse(targetAccessor.IsNotEmpty); target.LatitudeAttributeName = "test"; Assert.IsTrue(targetAccessor.IsNotEmpty); }
public void LatitudeAttributeNameTest() { GeoAnchor target = new GeoAnchor(); string expected = string.Empty; target.LatitudeAttributeName = expected; string actual = target.LatitudeAttributeName; Assert.AreEqual(expected, actual); }
public void GeoAnchorConstructorTest() { string latitudeAttr = string.Empty; float latitudeVal = 0F; string longitudeAttr = string.Empty; float longitudeVal = 0F; GeoAnchor target = new GeoAnchor(latitudeAttr, latitudeVal, longitudeAttr, longitudeVal); Assert.AreEqual(latitudeAttr, target.LatitudeAttributeName); Assert.AreEqual(latitudeVal, target.LatitudeValue); Assert.AreEqual(longitudeAttr, target.LongitudeAttributeName); Assert.AreEqual(longitudeVal, target.LongitudeValue); }
public void SerializeTest() { GeoAnchor target = new GeoAnchor(); ArrayList list = new ArrayList(); ArrayListWriterMock writer = new ArrayListWriterMock(list); target.Serialize(writer); CollectionAssert.AreEqual(list, new [] { false }); writer.Reset(); target.LatitudeAttributeName = "test"; target.Serialize(writer); CollectionAssert.AreEqual(list, new object[] { true, target.LatitudeAttributeName, target.LongitudeAttributeName, target.LatitudeValue, target.LongitudeValue }); }
public void GeoAnchorConstructorTest1() { GeoAnchor target = new GeoAnchor(); }