public void ExistsTestEmptyWorkbookMap() { string layerID = string.Empty; bool expected = false; bool actual; actual = WorkbookMapExtensions.Exists(null, layerID); Assert.AreEqual(expected, actual); }
public void ExistsTestEmptyLayerId() { WorkbookMap workbookMap = new WorkbookMap(null); string layerID = string.Empty; bool expected = false; bool actual; actual = WorkbookMapExtensions.Exists(workbookMap, layerID); Assert.AreEqual(expected, actual); }
public void ExistsTestValid() { LayerMap layerMap = new LayerMap(new Layer()); layerMap.LayerDetails.ID = "ValidID"; WorkbookMap workbookMap = new WorkbookMap(null); workbookMap.AllLayerMaps.Add(layerMap); string layerID = "ValidID"; bool expected = true; bool actual; actual = WorkbookMapExtensions.Exists(workbookMap, layerID); Assert.AreEqual(expected, actual); }