コード例 #1
0
 public void StandardStringsShouldNotHaveAStandardSize() {
     var megaRepository = _container.Resolve<IRepository<MegaRecord>>();
     var mega = new MegaRecord() { SmallStuff = new string('x', 256) };
     megaRepository.Create(mega);
     _session.Flush();
 }
コード例 #2
0
 public void BigStringsShouldNotBeTruncated() {
     var megaRepository = _container.Resolve<IRepository<MegaRecord>>();
     var mega = new MegaRecord() { BigStuff = new string('x', 20000) };
     megaRepository.Create(mega);
     _session.Flush();
 }