예제 #1
0
func (this *Assert) Port(value v2net.Port) *PortSubject {
	return &PortSubject{
		Subject: Subject{
			a:    this,
			disp: value.String(),
		},
		value: value,
	}
}
예제 #2
0
func (subject *PortSubject) GreaterThan(expectation v2net.Port) {
	if subject.value.Value() <= expectation.Value() {
		subject.Fail("is greater than", expectation.String())
	}
}
예제 #3
0
func (subject *PortSubject) LessThan(expectation v2net.Port) {
	if subject.value.Value() >= expectation.Value() {
		subject.Fail("is less than", expectation.String())
	}
}
예제 #4
0
func (subject *PortSubject) Equals(expectation v2net.Port) {
	if subject.value.Value() != expectation.Value() {
		subject.Fail("is equal to", expectation.String())
	}
}