public void ShouldFailStaticFieldsAssertionIfAssemblyContainsAtLeastOneStaticField() { var assembly = typeof(RecordedAssertionsSpecification).Assembly; var e = Assert.Throws <AssertionException>(() => XAssert.NoStaticFields(assembly)); StringAssert.Contains("_lolek", e.Message); StringAssert.Contains("_gieniek", e.Message); StringAssert.Contains("StaticProperty", e.Message); }
public void NoStaticFields(Assembly assembly) { LogException(() => XAssert.NoStaticFields(assembly)); }