private void NoSignRequirementCoverage_CreateNewfolderTraditional_Win7_Win2K8R2S0CreateResponseChecker(int messageId, int sessionId, int treeId, int fid, bool isSigned, List <Microsoft.Protocol.TestSuites.Smb.CreateAction> createAction, bool isFileIdZero, bool isVolumeGuidZero, bool isDirectoryZero, bool isByteCountZero, bool isNoStream, Microsoft.Protocol.TestSuites.Smb.MessageStatus messageStatus) { this.Manager.Comment("checking step \'event CreateResponse(4,1,1,0,False,{FileCreated,FileDoesNotExist}," + "True,True,False,True,True,Success)\'"); try { TestManagerHelpers.AssertAreEqual <int>(this.Manager, 4, messageId, "messageId of CreateResponse, state S19"); TestManagerHelpers.AssertAreEqual <int>(this.Manager, 1, sessionId, "sessionId of CreateResponse, state S19"); TestManagerHelpers.AssertAreEqual <int>(this.Manager, 1, treeId, "treeId of CreateResponse, state S19"); TestManagerHelpers.AssertAreEqual <int>(this.Manager, 0, fid, "fid of CreateResponse, state S19"); TestManagerHelpers.AssertAreEqual <bool>(this.Manager, false, isSigned, "isSigned of CreateResponse, state S19"); TestManagerHelpers.AssertNotNull(this.Manager, createAction, "createAction of CreateResponse, state S19"); TestManagerHelpers.AssertAreEqual <Microsoft.Protocol.TestSuites.Smb.CreateAction>(this.Manager, new List <Microsoft.Protocol.TestSuites.Smb.CreateAction> { Microsoft.Protocol.TestSuites.Smb.CreateAction.FileCreated, Microsoft.Protocol.TestSuites.Smb.CreateAction.FileDoesNotExist }, createAction, "createAction of CreateResponse, state S19, field selection Rep"); TestManagerHelpers.AssertAreEqual <bool>(this.Manager, true, isFileIdZero, "isFileIdZero of CreateResponse, state S19"); TestManagerHelpers.AssertAreEqual <bool>(this.Manager, true, isVolumeGuidZero, "isVolumeGuidZero of CreateResponse, state S19"); TestManagerHelpers.AssertAreEqual <bool>(this.Manager, false, isDirectoryZero, "isDirectoryZero of CreateResponse, state S19"); TestManagerHelpers.AssertAreEqual <bool>(this.Manager, true, isByteCountZero, "isByteCountZero of CreateResponse, state S19"); TestManagerHelpers.AssertAreEqual <bool>(this.Manager, true, isNoStream, "isNoStream of CreateResponse, state S19"); TestManagerHelpers.AssertAreEqual <Microsoft.Protocol.TestSuites.Smb.MessageStatus>(this.Manager, ((Microsoft.Protocol.TestSuites.Smb.MessageStatus)(0)), messageStatus, "messageStatus of CreateResponse, state S19"); } catch (TransactionFailedException) { this.Manager.Comment("This step would have covered MS-SMB_R30081, MS-SMB_R30065"); throw; } this.Manager.Checkpoint("MS-SMB_R30081"); this.Manager.Checkpoint("MS-SMB_R30065"); }
private void NoSignRequirementCoverage_CreateNewfolderTraditional_Win7_Win2K8R2S0SessionSetupResponseChecker1(int messageId, int sessionId, int securitySignatureValue, bool isSigned, bool isGuestAccount, Microsoft.Protocol.TestSuites.Smb.MessageStatus messageStatus) { this.Manager.Comment("checking step \'event SessionSetupResponse(2,1,0,False,False,Success)\'"); try { TestManagerHelpers.AssertAreEqual <int>(this.Manager, 2, messageId, "messageId of SessionSetupResponse, state S13"); TestManagerHelpers.AssertAreEqual <int>(this.Manager, 1, sessionId, "sessionId of SessionSetupResponse, state S13"); TestManagerHelpers.AssertAreEqual <int>(this.Manager, 0, securitySignatureValue, "securitySignatureValue of SessionSetupResponse, state S13"); TestManagerHelpers.AssertAreEqual <bool>(this.Manager, false, isSigned, "isSigned of SessionSetupResponse, state S13"); TestManagerHelpers.AssertAreEqual <bool>(this.Manager, false, isGuestAccount, "isGuestAccount of SessionSetupResponse, state S13"); TestManagerHelpers.AssertAreEqual <Microsoft.Protocol.TestSuites.Smb.MessageStatus>(this.Manager, ((Microsoft.Protocol.TestSuites.Smb.MessageStatus)(0)), messageStatus, "messageStatus of SessionSetupResponse, state S13"); } catch (TransactionFailedException) { this.Manager.Comment("This step would have covered MS-SMB_R8380, MS-SMB_R4143, MS-SMB_R4784, MS-SMB_R21" + "93, MS-SMB_R8390"); throw; } this.Manager.Checkpoint("MS-SMB_R8380"); this.Manager.Checkpoint("MS-SMB_R4143"); this.Manager.Checkpoint("MS-SMB_R4784"); this.Manager.Checkpoint("MS-SMB_R2193"); this.Manager.Checkpoint("MS-SMB_R8390"); }
private void NoSignRequirementCoverage_CreateNewfolderTraditional_Win7_Win2K8R2S0NegotiateResponseChecker(int messageId, bool isSignatureRequired, bool isSignatureEnabled, int dialectIndex, List <Microsoft.Protocol.TestSuites.Smb.Capabilities> serverCapabilities, Microsoft.Protocol.TestSuites.Smb.MessageStatus messageStatus) { this.Manager.Comment("checking step \'event NegotiateResponse(1,False,False,5,{CapNtSmbs,CapExtendedSecu" + "rity,CapDfs,CapInfoLevelPassThru},Success)\'"); try { TestManagerHelpers.AssertAreEqual <int>(this.Manager, 1, messageId, "messageId of NegotiateResponse, state S10"); TestManagerHelpers.AssertAreEqual <bool>(this.Manager, false, isSignatureRequired, "isSignatureRequired of NegotiateResponse, state S10"); TestManagerHelpers.AssertAreEqual <bool>(this.Manager, false, isSignatureEnabled, "isSignatureEnabled of NegotiateResponse, state S10"); TestManagerHelpers.AssertAreEqual <int>(this.Manager, 5, dialectIndex, "dialectIndex of NegotiateResponse, state S10"); TestManagerHelpers.AssertNotNull(this.Manager, serverCapabilities, "serverCapabilities of NegotiateResponse, state S10"); TestManagerHelpers.AssertAreEqual <Microsoft.Protocol.TestSuites.Smb.Capabilities>(this.Manager, new List <Microsoft.Protocol.TestSuites.Smb.Capabilities> { Microsoft.Protocol.TestSuites.Smb.Capabilities.CapNtSmbs, Microsoft.Protocol.TestSuites.Smb.Capabilities.CapExtendedSecurity, Microsoft.Protocol.TestSuites.Smb.Capabilities.CapDfs, Microsoft.Protocol.TestSuites.Smb.Capabilities.CapInfoLevelPassThru }, serverCapabilities, "serverCapabilities of NegotiateResponse, state S10, field selection Rep"); TestManagerHelpers.AssertAreEqual <Microsoft.Protocol.TestSuites.Smb.MessageStatus>(this.Manager, ((Microsoft.Protocol.TestSuites.Smb.MessageStatus)(0)), messageStatus, "messageStatus of NegotiateResponse, state S10"); } catch (TransactionFailedException) { this.Manager.Comment("This step would have covered MS-SMB_R2308, MS-SMB_R4747"); throw; } this.Manager.Checkpoint("MS-SMB_R2308"); this.Manager.Checkpoint("MS-SMB_R4747"); }
private void NoSignRequirementCoverage_CreateNewfolderTraditional_Win7_Win2K8R2S0TreeConnectResponseChecker(int messageId, int sessionId, int treeId, bool isSecuritySignatureZero, Microsoft.Protocol.TestSuites.Smb.ShareType shareType, Microsoft.Protocol.TestSuites.Smb.MessageStatus messageStatus, bool isSigned, bool isInDfs, bool isSupportExtSignature) { this.Manager.Comment("checking step \'event TreeConnectResponse(3,1,1,True,Disk,Success,False,False,True" + ")\'"); TestManagerHelpers.AssertAreEqual <int>(this.Manager, 3, messageId, "messageId of TreeConnectResponse, state S16"); TestManagerHelpers.AssertAreEqual <int>(this.Manager, 1, sessionId, "sessionId of TreeConnectResponse, state S16"); TestManagerHelpers.AssertAreEqual <int>(this.Manager, 1, treeId, "treeId of TreeConnectResponse, state S16"); TestManagerHelpers.AssertAreEqual <bool>(this.Manager, true, isSecuritySignatureZero, "isSecuritySignatureZero of TreeConnectResponse, state S16"); TestManagerHelpers.AssertAreEqual <Microsoft.Protocol.TestSuites.Smb.ShareType>(this.Manager, ((Microsoft.Protocol.TestSuites.Smb.ShareType)(0)), shareType, "shareType of TreeConnectResponse, state S16"); TestManagerHelpers.AssertAreEqual <Microsoft.Protocol.TestSuites.Smb.MessageStatus>(this.Manager, ((Microsoft.Protocol.TestSuites.Smb.MessageStatus)(0)), messageStatus, "messageStatus of TreeConnectResponse, state S16"); TestManagerHelpers.AssertAreEqual <bool>(this.Manager, false, isSigned, "isSigned of TreeConnectResponse, state S16"); TestManagerHelpers.AssertAreEqual <bool>(this.Manager, false, isInDfs, "isInDfs of TreeConnectResponse, state S16"); TestManagerHelpers.AssertAreEqual <bool>(this.Manager, true, isSupportExtSignature, "isSupportExtSignature of TreeConnectResponse, state S16"); }
private void NoSignRequirementCoverage_MultipleTreeTraditional_Win7_Win2K8R2S0TreeConnectResponseChecker1(int messageId, int sessionId, int treeId, bool isSecuritySignatureZero, Microsoft.Protocol.TestSuites.Smb.ShareType shareType, Microsoft.Protocol.TestSuites.Smb.MessageStatus messageStatus, bool isSigned, bool isInDfs, bool isSupportExtSignature) { this.Manager.Comment("checking step \'event TreeConnectResponse(4,1,2,True,Disk,Success,False,False,True" + ")\'"); try { TestManagerHelpers.AssertAreEqual <int>(this.Manager, 4, messageId, "messageId of TreeConnectResponse, state S19"); TestManagerHelpers.AssertAreEqual <int>(this.Manager, 1, sessionId, "sessionId of TreeConnectResponse, state S19"); TestManagerHelpers.AssertAreEqual <int>(this.Manager, 2, treeId, "treeId of TreeConnectResponse, state S19"); TestManagerHelpers.AssertAreEqual <bool>(this.Manager, true, isSecuritySignatureZero, "isSecuritySignatureZero of TreeConnectResponse, state S19"); TestManagerHelpers.AssertAreEqual <Microsoft.Protocol.TestSuites.Smb.ShareType>(this.Manager, ((Microsoft.Protocol.TestSuites.Smb.ShareType)(0)), shareType, "shareType of TreeConnectResponse, state S19"); TestManagerHelpers.AssertAreEqual <Microsoft.Protocol.TestSuites.Smb.MessageStatus>(this.Manager, ((Microsoft.Protocol.TestSuites.Smb.MessageStatus)(0)), messageStatus, "messageStatus of TreeConnectResponse, state S19"); TestManagerHelpers.AssertAreEqual <bool>(this.Manager, false, isSigned, "isSigned of TreeConnectResponse, state S19"); TestManagerHelpers.AssertAreEqual <bool>(this.Manager, false, isInDfs, "isInDfs of TreeConnectResponse, state S19"); TestManagerHelpers.AssertAreEqual <bool>(this.Manager, true, isSupportExtSignature, "isSupportExtSignature of TreeConnectResponse, state S19"); } catch (TransactionFailedException) { this.Manager.Comment("This step would have covered MS-SMB_R8565"); throw; } this.Manager.Checkpoint("MS-SMB_R8565"); }
private void NonExtendRequirementCoverage_Create_Win7_Win2K8R2S0NonExtendedSessionSetupResponseChecker1(int messageId, int sessionId, int securitySignatureValue, bool isSigned, bool isGuestAccount, bool isRS2322Implemented, Microsoft.Protocol.TestSuites.Smb.MessageStatus messageStatus) { this.Manager.Comment("checking step \'event NonExtendedSessionSetupResponse(2,1,1,True,False,False,Succe" + "ss)\'"); try { TestManagerHelpers.AssertAreEqual <int>(this.Manager, 2, messageId, "messageId of NonExtendedSessionSetupResponse, state S13"); TestManagerHelpers.AssertAreEqual <int>(this.Manager, 1, sessionId, "sessionId of NonExtendedSessionSetupResponse, state S13"); TestManagerHelpers.AssertAreEqual <int>(this.Manager, 1, securitySignatureValue, "securitySignatureValue of NonExtendedSessionSetupResponse, state S13"); TestManagerHelpers.AssertAreEqual <bool>(this.Manager, true, isSigned, "isSigned of NonExtendedSessionSetupResponse, state S13"); TestManagerHelpers.AssertAreEqual <bool>(this.Manager, false, isGuestAccount, "isGuestAccount of NonExtendedSessionSetupResponse, state S13"); TestManagerHelpers.AssertAreEqual <bool>(this.Manager, false, isRS2322Implemented, "isRS2322Implemented of NonExtendedSessionSetupResponse, state S13"); TestManagerHelpers.AssertAreEqual <Microsoft.Protocol.TestSuites.Smb.MessageStatus>(this.Manager, ((Microsoft.Protocol.TestSuites.Smb.MessageStatus)(0)), messageStatus, "messageStatus of NonExtendedSessionSetupResponse, state S13"); } catch (TransactionFailedException) { this.Manager.Comment("This step would have covered MS-SMB_R2322, MS-SMB_R8380"); throw; } this.Manager.Checkpoint("MS-SMB_R2322"); this.Manager.Checkpoint("MS-SMB_R8380"); }
private void NonExtendRequirementCoverage_Create_Win7_Win2K8R2S0NtTransactCreateResponseChecker(int messageId, int sessionId, int treeId, bool isSigned, Microsoft.Protocol.TestSuites.Smb.MessageStatus messageStatus) { this.Manager.Comment("checking step \'event NtTransactCreateResponse(4,1,1,True,Success)\'"); TestManagerHelpers.AssertAreEqual <int>(this.Manager, 4, messageId, "messageId of NtTransactCreateResponse, state S19"); TestManagerHelpers.AssertAreEqual <int>(this.Manager, 1, sessionId, "sessionId of NtTransactCreateResponse, state S19"); TestManagerHelpers.AssertAreEqual <int>(this.Manager, 1, treeId, "treeId of NtTransactCreateResponse, state S19"); TestManagerHelpers.AssertAreEqual <bool>(this.Manager, true, isSigned, "isSigned of NtTransactCreateResponse, state S19"); TestManagerHelpers.AssertAreEqual <Microsoft.Protocol.TestSuites.Smb.MessageStatus>(this.Manager, ((Microsoft.Protocol.TestSuites.Smb.MessageStatus)(0)), messageStatus, "messageStatus of NtTransactCreateResponse, state S19"); }
private void NonExtendRequirementCoverage_Create_Win7_Win2K8R2S0ErrorResponseChecker(int messageId, Microsoft.Protocol.TestSuites.Smb.MessageStatus messageStatus) { this.Manager.Comment("checking step \'event ErrorResponse(4,NetworkSessionExpired)\'"); TestManagerHelpers.AssertAreEqual <int>(this.Manager, 4, messageId, "messageId of ErrorResponse, state S19"); TestManagerHelpers.AssertAreEqual <Microsoft.Protocol.TestSuites.Smb.MessageStatus>(this.Manager, Microsoft.Protocol.TestSuites.Smb.MessageStatus.NetworkSessionExpired, messageStatus, "messageStatus of ErrorResponse, state S19"); }
private void NonExtendRequirementCoverage_Create_Win7_Win2K8R2S0NonExtendedNegotiateResponseChecker(int messageId, bool isSignatureRequired, bool isSignatureEnabled, int dialectIndex, List <Microsoft.Protocol.TestSuites.Smb.Capabilities> serverCapabilities, Microsoft.Protocol.TestSuites.Smb.MessageStatus messageStatus) { this.Manager.Comment("checking step \'event NonExtendedNegotiateResponse(1,False,True,5,{CapNtSmbs,CapDf" + "s,CapInfoLevelPassThru},Success)\'"); TestManagerHelpers.AssertAreEqual <int>(this.Manager, 1, messageId, "messageId of NonExtendedNegotiateResponse, state S10"); TestManagerHelpers.AssertAreEqual <bool>(this.Manager, false, isSignatureRequired, "isSignatureRequired of NonExtendedNegotiateResponse, state S10"); TestManagerHelpers.AssertAreEqual <bool>(this.Manager, true, isSignatureEnabled, "isSignatureEnabled of NonExtendedNegotiateResponse, state S10"); TestManagerHelpers.AssertAreEqual <int>(this.Manager, 5, dialectIndex, "dialectIndex of NonExtendedNegotiateResponse, state S10"); TestManagerHelpers.AssertNotNull(this.Manager, serverCapabilities, "serverCapabilities of NonExtendedNegotiateResponse, state S10"); TestManagerHelpers.AssertAreEqual <Microsoft.Protocol.TestSuites.Smb.Capabilities>(this.Manager, new List <Microsoft.Protocol.TestSuites.Smb.Capabilities> { Microsoft.Protocol.TestSuites.Smb.Capabilities.CapNtSmbs, Microsoft.Protocol.TestSuites.Smb.Capabilities.CapDfs, Microsoft.Protocol.TestSuites.Smb.Capabilities.CapInfoLevelPassThru }, serverCapabilities, "serverCapabilities of NonExtendedNegotiateResponse, state S10, field selection Re" + "p"); TestManagerHelpers.AssertAreEqual <Microsoft.Protocol.TestSuites.Smb.MessageStatus>(this.Manager, ((Microsoft.Protocol.TestSuites.Smb.MessageStatus)(0)), messageStatus, "messageStatus of NonExtendedNegotiateResponse, state S10"); }