public void get_npSniHandle() { const bool marsOn = false; var p = new ServerConnectionOptions(@"(localdb)\mssqllocaldb", false); var handle = new TdsStreamNamedPipes(p.PipeServerName, p.PipeName, 15); var writer = new TdsPackageWriter(handle); var reader = new TdsPackageReader(handle); writer.SendPreLoginHandshake("", marsOn); reader.CheckBuffer(8); var result = ParserPreLogin.ParsePreLoginHandshake(reader.ReadBuffer, TdsEnums.HEADER_LEN, EncryptionOptions.OFF); Assert.Equal(EncryptionOptions.OFF, result); }