Wednesday, April 25, 2012

Access IISExpress from Remote Machine

Today I tried to access my development site from a VM and was unable to connect. Thanks to @vcsjones, I learned that you can edit My Documents > IISExpress > config > applicationhost.config. Look for the sites section:

        <sites>
            <site name="MyApplication" id="0">
                <bindings>
                    <binding protocol="http" bindingInformation="*:2600:localhost" />
                </bindings>
            </site>
        </sites>
duplicate the localhost line and replace “localhost” with the hostname you want to allow.
Thanks Dr. Jones.

Wednesday, April 18, 2012

Testing the Order of Your Collections

I was trying to test that a service call was returning my data in order. I didn’t want to implement an IComparer to pass into CollectionAssert.IsOrdered(). Thanks to some insight from Ahmad on StackOverflow I was able to come up with the following assert:

Assert.That(result, Is.Ordered.By("Name"));
Simple!
Follow me on App.net