Ejemplo n.º 1
0
 public void ParseString14()
 {
     using (PexTraceListenerContext.Create())
     {
         DateTime dt;
         dt = this.ParseString("2903-0-0");
     }
 }
Ejemplo n.º 2
0
 public void ParseString15()
 {
     using (PexTraceListenerContext.Create())
     {
         DateTime dt;
         dt = this.ParseString("8305880\0");
     }
 }
Ejemplo n.º 3
0
 public void CodigoComComplexidadeSintomaticaAlta714()
 {
     using (PexTraceListenerContext.Create())
     {
         Business s0 = new Business();
         this.CodigoComComplexidadeSintomaticaAlta(s0, "C\0\0\0\0\0\0\0\0\0\0");
         Assert.IsNotNull((object)s0);
     }
 }
 public void GetLineFromIndexThrowsTraceAssertionException788()
 {
     using (PexTraceListenerContext.Create())
     {
         string s;
         int    i = 0;
         s = this.GetLineFromIndex("\r\n\0\r\n\r\n", 3, out i);
     }
 }
Ejemplo n.º 5
0
 public void createTable68()
 {
     using (PexTraceListenerContext.Create())
     {
         QuestionTable questionTable;
         bool          b;
         questionTable = new QuestionTable();
         b             = this.createTable((DBTable)questionTable);
         Assert.AreEqual <bool>(false, b);
     }
 }
Ejemplo n.º 6
0
 public void initializeStaticDAOThrowsMySqlException292()
 {
     using (PexTraceListenerContext.Create())
     {
         Model model;
         model = new Model();
         model.currentVoter = (VoterDO)null;
         model.AdminPass    = (string)null;
         this.initializeStaticDAO(model);
     }
 }
 public void createTable230()
 {
     using (PexTraceListenerContext.Create())
     {
         QuestionTable questionTable;
         bool          b;
         questionTable = new QuestionTable();
         b             = this.createTable(questionTable);
         Assert.AreEqual <bool>(false, b);
         Assert.IsNotNull((object)questionTable);
         Assert.AreEqual <string>("Failed to open database connection",
                                  ((DBTable)questionTable).errorMessage);
     }
 }
 public void createTable278()
 {
     using (PexTraceListenerContext.Create())
     {
         HighScoresTable highScoresTable;
         bool            b;
         highScoresTable = new HighScoresTable();
         b = this.createTable(highScoresTable);
         Assert.AreEqual <bool>(false, b);
         Assert.IsNotNull((object)highScoresTable);
         Assert.AreEqual <string>("Failed to open database connection",
                                  ((DBTable)highScoresTable).errorMessage);
     }
 }
Ejemplo n.º 9
0
 public void CheckWorkOrderTest320()
 {
     using (PexTraceListenerContext.Create())
     {
         using (PexDisposableContext disposables = PexDisposableContext.Create())
         {
             MessageTextHandler messageTextHandler;
             SoApi soApi;
             bool  b;
             messageTextHandler = new MessageTextHandler();
             disposables.Add((IDisposable)messageTextHandler);
             soApi = new SoApi((IWebServiceHelper)null,
                               (IMessageTextHandler)messageTextHandler, (IMpFlex)null);
             soApi.ReturnMsg       = (ReturnMsgVm)null;
             soApi.ListReturnMsgVm = (List <ReturnMsgVm>)null;
             soApi.Result          = EnumResult.Cancel;
             soApi.GetFlexObj      = (IMpFlex)null;
             soApi.Operation       = (string)null;
             soApi.FormObject      = (object)null;
             soApi.ShopOrder       = (string)null;
             soApi.ShopOrderName   = (string)null;
             soApi.LoginInfo       = (LoginInfoVm)null;
             soApi.RouteDetail     = (RouteDetailOperationStepVm)null;
             disposables.Add((IDisposable)soApi);
             b = this.CheckWorkOrderTest(soApi, (string)null);
             disposables.Dispose();
             Assert.AreEqual <bool>(true, b);
             Assert.IsNotNull((object)soApi);
             Assert.IsNotNull(soApi.ReturnMsg);
             Assert.AreEqual <string>(" is selected.", soApi.ReturnMsg.ReturnMsg);
             Assert.AreEqual <EnumMessage>
                 (EnumMessage.ValueSelected, soApi.ReturnMsg.ReturnMsgEnum);
             Assert.IsNull(soApi.ListReturnMsgVm);
             Assert.AreEqual <EnumResult>(EnumResult.Cancel, soApi.Result);
             Assert.IsNull(soApi.GetWsObj);
             Assert.IsNull(soApi.GetFlexObj);
             Assert.IsNotNull(soApi.GetMsgObj);
             Assert.AreEqual <string>((string)null, soApi.Operation);
             Assert.IsNull(soApi.FormObject);
             Assert.AreEqual <string>((string)null, soApi.ShopOrder);
             Assert.AreEqual <string>((string)null, soApi.ShopOrderName);
             Assert.IsNull(soApi.LoginInfo);
             Assert.IsNull(soApi.RouteDetail);
         }
     }
 }
 public void SetupNextRound888()
 {
     using (PexTraceListenerContext.Create())
     {
         Gameboard gameboard;
         bool      b;
         gameboard = new Gameboard();
         b         = this.SetupNextRound(gameboard);
         Assert.AreEqual <bool>(false, b);
         Assert.IsNotNull((object)gameboard);
         Assert.AreEqual <int>(1, gameboard.currentRound);
         Assert.AreEqual <int>(0, gameboard.currentScore);
         Assert.IsNotNull(gameboard.roundCategories);
         Assert.AreEqual <int>(0, gameboard.roundCategories.Capacity);
         Assert.AreEqual <int>(0, gameboard.roundCategories.Count);
         Assert.IsNotNull(gameboard.values);
         Assert.AreEqual <int>(8, gameboard.values.Capacity);
         Assert.AreEqual <int>(5, gameboard.values.Count);
     }
 }