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