最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Unit Tests in F# Interactive using NUnit - Stack Overflow

programmeradmin1浏览0评论

I've attempted to write a simple unit test in F# interactive using NUnit. I downloaded NUnit.Framework-4.3.2.zip file from here .3.2 and unzipped it to "myFolder". Then in my *.fsx file I wrote the below code which gives the "is not a valid assembly name" compilation error. I use VS code. What am I doing wrong here?

#r "C:\myFolder\NUnit.Framework-4.3.2\bin\net8.0\nunit.framework.dll"

open NUnit.Framework

[<Test>]
let ``2 + 2 should equal 4`` () =
  Assert.AreEqual(4, 2 + 2)
发布评论

评论列表(0)

  1. 暂无评论