Exemplo n.º 1
0
func (this *Assert) Uint32(value uint32) *Uint32Subject {
	return &Uint32Subject{
		Subject: Subject{
			a:    this,
			disp: serial.Uint32ToString(value),
		},
		value: value,
	}
}
Exemplo n.º 2
0
func (subject *Uint32Subject) GreaterThan(expectation uint32) {
	if subject.value <= expectation {
		subject.Fail("is greater than", serial.Uint32ToString(expectation))
	}
}
Exemplo n.º 3
0
func (subject *Uint32Subject) LessThan(expectation uint32) {
	if subject.value >= expectation {
		subject.Fail("is less than", serial.Uint32ToString(expectation))
	}
}
Exemplo n.º 4
0
func (subject *Uint32Subject) Equals(expectation uint32) {
	if subject.value != expectation {
		subject.Fail("is equal to", serial.Uint32ToString(expectation))
	}
}