Ejemplo n.º 1
0
 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();
     }
 }
Ejemplo n.º 2
0
		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);
		}