Coder Social home page Coder Social logo

norwegian-shouldly's Introduction

Norwegian Shouldly

A Norwegian language wrapper for the Shouldly assertion framework. This wrapper contains no additional or changed functionality, it just translates english function- and parameter names into Norwegian for a more fluent experience when coding in Norwegian. It calls- and depends on the original Shouldly framework underneath and thus owns no logic other than that which Shouldly presents.

Install

Install-Package NorwegianShouldly

F.eks

var person = new Person("Ola", "Normann", 30);
person.Fornavn.SkalVære("Ola");
person.Etternavn.SkalIkkeVæreNullEllerTom();
person.Alder.SkalVæreStørreEnn(18);

var personer = new List<Person>{ person };
personer.SkalIkkeVæreTom();
personer.SkalInneholde(person);
personer.Count.SkalVære(1);

class Dyr { };
class Hund : Dyr { };
var hund = new Hund();
hund.SkalVæreAvType<Hund>();
hund.SkalKunneTilordnes<Dyr>();
hund.SkalIkkeKunneTilordnes<NoeAnnet>();

var alder = 15;
alder.SkalVæreStørreEllerLik(18);
alder.SkalVæreMindreEnn(30);
alder.SkalVæreStørreEnn(3);

noe.Farlig().SkalKaste();
noe.MindreFarlig().SkalIkkeKaste();

var lipsum = "Lorem ipsum dolor sit amet, consectetur adipiscing elit";
lipsum.SkalStarteMed("Lorem");
lipsum.SkalSlutteMed("elit");
lipsum.SkalInneholde("sit amet");

norwegian-shouldly's People

Contributors

eaardal avatar

Stargazers

Piotr Łazarczyk avatar Erlend Røsjø avatar

Watchers

 avatar  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.