C# 클래스 NUnit.Framework.ShouldExtensions

Simple extension methods allowing us to use NUnit constraints as: "foo".Should(Be.StringContaining("o"));
ShouldExtensions.Should and ShouldExtensions.ShouldNot are the only methods that are really required to give us Should() syntax with NUnit. We also add a number of Should*() helper methods, however, so you can say things like list.ShouldContain("rover") instead of list.Should(Contain.Item("rover"))
파일 보기 프로젝트 열기: benfoster/ImageResizer.FluentExtensions

공개 메소드들

메소드 설명
Should ( this o, IResolveConstraint constraint ) : void
ShouldNot ( this o, Constraint constraint ) : void

메소드 상세

Should() 공개 정적인 메소드

public static Should ( this o, IResolveConstraint constraint ) : void
o this
constraint IResolveConstraint
리턴 void

ShouldNot() 공개 정적인 메소드

public static ShouldNot ( this o, Constraint constraint ) : void
o this
constraint Constraint
리턴 void