Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

MSTest/F# tests with specials characters are detected but do not run
scmccart
#1 Posted : Monday, October 6, 2014 9:08:59 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 7/27/2012(UTC)
Posts: 4
Location: North Carolina

Thanks: 1 times
Hey there, I've got some unit tests written in F# that have special characters in the name. They show up in the tests list as running, but never finish and don't seem to show in the running test count. I'm on NCrunch 2.10.0.4 with Visual Studio 2013.

Here's a quick example,

namespace ``Example Equality Tests``
open System
open FsUnit.MsTest
open Microsoft.VisualStudio.TestTools.UnitTesting

[<TestClass>]
type public ``Equality Given a String`` () =

[<TestMethod>]
member public x.``Test with ()`` () =
"foobar" |> should equal "foobar"

[<TestMethod>]
member public x.``Test with ,`` () =
"foobar" |> should equal "foobar"

[<TestMethod>]
member public x.``Test with "`` () =
"foobar" |> should equal "foobar"

[<TestMethod>]
member public x.``Test with '`` () =
"foobar" |> should equal "foobar"

[<TestMethod>]
member public x.``Test with -`` () =
"foobar" |> should equal "foobar"

[<TestMethod>]
member public x.``Test with !`` () =
"foobar" |> should equal "foobar"

[<TestMethod>]
member public x.``Test with \`` () =
"foobar" |> should equal "foobar"

[<TestMethod>]
member public x.``Test with /`` () =
"foobar" |> should equal "foobar"

Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAF | YAF © 2003-2011, Yet Another Forum.NET
This page was generated in 0.021 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download