You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Test]
public void IsNowLunchBreak_should_return_false_when_11_oclock() {
// IndirectionsContext can minimize the influence of the API replacement.
using (new IndirectionsContext())
{
// Arrange
// Replace DateTime.Now body. Hereafter, DateTime.Now will return only 2013/12/13 11:00:00.
PDateTime.NowGet().Body = () => new DateTime(2013, 12, 13, 11, 00, 00);
// Act
var result = LifeInfo.IsNowLunchBreak();
// Assert
Assert.IsFalse(result);
}
}
The text was updated successfully, but these errors were encountered:
PDateTime is a Prig Type, so it will be generated automatically based on Stub Settings File(in QUICK TOUR case, the settings is in mscorlib.v4.0.30319.v4.0.0.0.prig). If you can't find the type, the auto generation has possibly failed.
your readme https://github.com/urasandesu/Prig/blob/master/README.md uses PDateTime which is not anywhere in the scope - this is your custom class i believe... - https://gist.github.com/urasandesu/8751367
having that, what is the meaning of example???:
[Test]
public void IsNowLunchBreak_should_return_false_when_11_oclock() {
//
IndirectionsContext
can minimize the influence of the API replacement.using (new IndirectionsContext())
{
// Arrange
// Replace
DateTime.Now
body. Hereafter,DateTime.Now
will return only2013/12/13 11:00:00
.PDateTime.NowGet().Body = () => new DateTime(2013, 12, 13, 11, 00, 00);
The text was updated successfully, but these errors were encountered: