GithubHelp home page GithubHelp logo

stm91 / fluentassertions-unity Goto Github PK

View Code? Open in Web Editor NEW

This project forked from boundfoxstudios/fluentassertions-unity

0.0 0.0 0.0 2.11 MB

FluentAssertions for Unity

License: Apache License 2.0

Shell 0.02% C# 99.98%

fluentassertions-unity's Introduction

openupm

Fluent Assertions for Unity

This package contains the current version of FluentAssertions 6.8.0 ready to use with Unity.

If you encouter any bugs, which are related to the package and not to FluentAssertions itself, feel free to open an issue.

For more information about FluentAssertions itself, please head over to https://fluentassertions.com.

Pre-requirements

  • Unity 2021.2 or newer
  • .NET Standard 2.0 scripting backend

Installation

OpenUPM

The package is available on the openupm registry. It's recommended to install it via openupm-cli.

openupm add com.boundfoxstudios.fluentassertions

Unity Package Manager

Window -> Package Manager -> + sign -> Add via git url:

https://github.com/BoundfoxStudios/fluentassertions-unity.git#upm

Setup

Then, reference FluentAssertions in your test's assembly definition and you are good to go!

Troubleshooting

If you get the following error:

  • The type or namespace name 'DynamicMethod' could not be found (are you missing a using directive or an assembly reference?) or
  • The type or namespace name 'ILGenerator' could not be found (are you missing a using directive or an assembly reference?)

then you need to define the following scripting symbol (Edit -> Project Settings -> Player -> Other Settings -> Scripting Define Symbols): NETSTANDARD2_0.

Wait for Unity to recompile, the error should be gone then.

If not, please open an issue.

Credits

All credits go to FluentAssertions for creating an excellent library to make Unit Testing more readable and maintainable.

fluentassertions-unity's People

Contributors

manuelrauber avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.