public void Registers_EnforceHttpsAttribute() { var filters = new GlobalFilterCollection(); MvcApplication.RegisterGlobalFilters(filters); filters.ShouldNotBeNull(); filters.Count.ShouldBeInRange(1, int.MaxValue); var expectedFilter = filters.SingleOrDefault(filter => typeof(EnforceHttpsAttribute) == filter.Instance.GetType()); expectedFilter.ShouldNotBeNull(); }