c# - Assert that a float is approximate to one of several values -


i'm trying use fluent assertions verify vector projected onto own axis approximate either v.length() or -v.length().

i can assert projection approximate: result.should().beapproximately(v.length())

or can assert projection 1 of several results: result.should().beoneof(v.length(), -v.length())

how can combine two?

why not result.should().beapproximately(v.length()).and.beapproximately(-v.length())?


Comments

Popular posts from this blog

assembly - 8086 TASM: Illegal Indexing Mode -

Java, LWJGL, OpenGL 1.1, decoding BufferedImage to Bytebuffer and binding to OpenGL across classes -

javascript - addthis share facebook and google+ url -