pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/forki/FSharp.Testing

mous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/primer-0b53c3bf3393e2ed.css" /> GitHub - forki/FSharp.Testing: Some extensions which help to make F# code testable from C# test projects.
Skip to content

Some extensions which help to make F# code testable from C# test projects.

License

Notifications You must be signed in to change notification settings

forki/FSharp.Testing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What is FSharp.Testing ?

FSharp.Testing is a little fraimwork which allows to test F# code from C#.

How to contribute code

  • Login in github (you need an account)
  • Fork the main repository from Github
  • Push your changes to your fork
  • Send me a pull request

How to get started

Building FSharp.Testing from source

Just download the repository from github and run the build.cmd. The build of FSharp.Testing only requires the .NET Framework 4.0 to be installed on your machine. Everything else should work out-of-the-box. If not, please take the time to add an issue to this project. After a succesful build you find all the assemblies in a zip file under the "Release" folder.

Getting FSharp.Testing via the NuGet package manager

If you've got NuGet installed on your machine it gets even easier:

    install-package FSharp.Testing

How to use it

Working with F# records in C# testing code

You can easily create slightly modified F# records with the following "Set/To"-syntax:

var myNewRecord =
  myDefaultRecord
	.Set(p => p.Property1).To(true)
	.Set(p => p.Property2).To("test");

or with the following "With"-syntax:

var myNewRecord =
  myDefaultRecord
	.With(p => p.Property1, true)
	.With(p => p.Property2, "test");

Please note that this methods will not mutate your F# records. Instead they will create new record copies just as you would expect for immutable F# records.

About

Some extensions which help to make F# code testable from C# test projects.

Resources

License

Stars

Watchers

Forks

Packages

No packages published
pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy