public void FeaturesTest() { FeatureSheet target = new FeatureSheet(); // TODO: Initialize to an appropriate value List<string> expected = null; // TODO: Initialize to an appropriate value List<string> actual; target.Features = expected; actual = target.Features; Assert.AreEqual(expected, actual); }
public void SheetTest() { FeatureSheet target = new FeatureSheet(); // TODO: Initialize to an appropriate value string expected = string.Empty; // TODO: Initialize to an appropriate value string actual; target.Sheet = expected; actual = target.Sheet; Assert.AreEqual(expected, actual); }
public void WriteTest() { FeatureSheet target = new FeatureSheet(); // TODO: Initialize to an appropriate value long expected = 0; // TODO: Initialize to an appropriate value long actual; CommonTestMethod.DisableDebugAsserts(); try { actual = target.Write(); Assert.Fail("Write succeeded with no sheet name!"); } catch (Exception e) { ArgumentNullException expectedException = new ArgumentNullException(); Assert.AreEqual(expectedException.GetType(), e.GetType()); } finally { CommonTestMethod.EnableDebugAsserts(); } }
public void SaveFeaturesTest() { FeatureSheet target = new FeatureSheet(); // TODO: Initialize to an appropriate value TreeView tv = null; // TODO: Initialize to an appropriate value // TODO: SaveFeatures depends on settings in Param class being loaded! CommonTestMethod.DisableDebugAsserts(); try { target.SaveFeatures(tv); Assert.Fail("SaveFeatures returned when Param not loaded!"); } catch (Exception e) { KeyNotFoundException expectedException = new KeyNotFoundException(); Assert.AreEqual(expectedException.GetType(), e.GetType()); } finally { CommonTestMethod.EnableDebugAsserts(); } }
public void FeatureSheetConstructorTest() { string sheet = string.Empty; // TODO: Initialize to an appropriate value FeatureSheet target = new FeatureSheet(sheet); //TODO: Implement code to verify target }
public void FeatureSheetConstructorTest1() { FeatureSheet target = new FeatureSheet(); //TODO: Implement code to verify target }
public void ReadToEndTest() { FeatureSheet target = new FeatureSheet(); // TODO: Initialize to an appropriate value bool expected = false; // TODO: Initialize to an appropriate value bool actual; // TODO: Sheet parameter must be set CommonTestMethod.DisableDebugAsserts(); try { actual = target.ReadToEnd(); Assert.Fail("ReadToEnd returned when Sheet not set!"); } catch (Exception e) { NullReferenceException expectedException = new NullReferenceException(); Assert.AreEqual(expectedException.GetType(), e.GetType()); } finally { CommonTestMethod.EnableDebugAsserts(); } }
public void PopulateFeatureLists(TreeView TvFeatures) { string defaultSheet = Param.DefaultValue.ContainsKey(Param.LayoutSelected) ? Param.DefaultValue[Param.LayoutSelected] : string.Empty; if (defaultSheet.Length == 0) return; var featureSheet = new FeatureSheet(Param.StylePath(defaultSheet)); featureSheet.ReadToEnd(); Param.LoadFeatures("features/feature", TvFeatures, TvFeatures.Enabled ? featureSheet.Features : null); }