Skip to content

drunkcod/Cone

Repository files navigation

#Cone - ergonomic unit testing for .Net

using Cone;

namespace WelcomeToCone
{
    [Describe(typeof(MyWidget))]
    public class MyWidgetSpec
    {
		public void the_widget_should_do_widgetty_things() {
			//Arrange some stuff.
			var theWidget = new MyWidget();
			//Do some Action
			theWidget.Frooble();

			Check.That(() => theWidget.HasBeenFroobled == true);
		}

        [Context("when the moon is cheese")]
        public class MyWidgetWhenTheMoonIsCheeseSpec
        {
            public void it_is_also_blue()//i.e. My Widget when the moon is cheese it is also blue
            {
                //TODO write test
                Check.That(() => theMoon != thatsNoMoon);
            }
        }
    }
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages