No description or website provided.
C# HTML Other
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
Docs
Source
Specs/Cone.Specs
Tools
.editorconfig
.gitignore
Build.fsx
BumpVersion.fsx
Cone.FxCop
Cone.Samples.sln
Cone.nutemplate
Cone.sln
NuPack.bat
NuPack.fsx
README.md
TestStats.fsx
build.bat

README.md

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);
            }
        }
    }
}