using System; using System.Collections.Generic; using System.Linq; using System.Text; using UnitTestSharp; using UnitTestSharp.DataDriven; namespace TestsForUnitTestSharp.DataDriven { public class TableTests : TestFixture { #region IsCommentCell public void Tilde() { string comment = "~This is a comment"; CheckTrue(Table.IsCommentCell(comment)); } public void ForwardSlash() { string comment = "`This is a comment"; CheckTrue(Table.IsCommentCell(comment)); } public void LeadingSpace() { string comment = " ~This is a comment"; CheckFalse(Table.IsCommentCell(comment)); } public void EmptyString() { string comment = ""; CheckTrue(Table.IsCommentCell(comment)); } public void Null() { string comment = null; CheckTrue(Table.IsCommentCell(comment)); } public void Number() { CheckFalse(Table.IsCommentCell(52)); } #endregion } }