os/kernelhwsrv/baseapitest/basesvs/validation/f32/sfsrv/scripts/PBASE-F32-DriveUnit-PublicApi-ANY.script
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/kernelhwsrv/baseapitest/basesvs/validation/f32/sfsrv/scripts/PBASE-F32-DriveUnit-PublicApi-ANY.script	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,374 @@
     1.4 +//
     1.5 +// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.6 +// All rights reserved.
     1.7 +// This component and the accompanying materials are made available
     1.8 +// under the terms of "Eclipse Public License v1.0"
     1.9 +// which accompanies this distribution, and is available
    1.10 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
    1.11 +//
    1.12 +// Initial Contributors:
    1.13 +// Nokia Corporation - initial contribution.
    1.14 +//
    1.15 +// Contributors:
    1.16 +//
    1.17 +// Description: 
    1.18 +//
    1.19 +//! @file
    1.20 +//! @SYMTestSuiteName			pbase-f32-sfsrv-publicapi-any
    1.21 +//! @SYMScriptTestEnvironment		This test script requires a basic ROM.
    1.22 +//! @SYMScriptAuthor 			Tanel Milsaar, Runno Sgirka
    1.23 +//! @SYMScriptDescription		The test script contains API tests for the following functions of TDriveUnit class:
    1.24 +//!	TDriveUnit(TInt aDrive);
    1.25 +//!	TDriveUnit(const TDesC &aDrive);
    1.26 +//!	TDriveUnit &operator=(TInt aDrive);
    1.27 +//!	void TDriveUnit &operator=(TInt aDrive);
    1.28 +//!	TDriveUnit &operator=(const TDesC &aDrive);
    1.29 +//!	operator TInt() const;
    1.30 +//!	TDriveName Name() const;
    1.31 +
    1.32 +
    1.33 +LOAD_SUITE	t_sfsrv
    1.34 +DELAY	5000
    1.35 +
    1.36 +
    1.37 +START_TESTCASE 			PBASE-F32-DriveUnit-PublicApi-0001
    1.38 +//! @SYMTestCaseID		PBASE-F32-DriveUnit-PublicApi-0001
    1.39 +//! @SYMAPI			TDriveUnit
    1.40 +//! @SYMTestCaseDesc		Function TDriveUnit() test. Create an instance with a drive number lesser than KMaxDrives.
    1.41 +//!				Uses API elements: TDriveUnit().
    1.42 +//! @SYMTestActions		1. Call TDriveUnit(TInt aDrive) to create a TDriveUnit object, passing "3" as parameter.
    1.43 +//!				2. Call operator TInt() to convert the drive unit to an integer value, passing "3" as expected value,
    1.44 +//!				for verification.
    1.45 +//! @SYMTestStatus		Implemented
    1.46 +//! @SYMTestPriority		Critical
    1.47 +//! @SYMTestExpectedResults	The TDriveUnit() method call is completed without errors, test returns "3" as drive number.
    1.48 +//! @SYMTestType		CIT
    1.49 +	START_TEST_BLOCK	100	t_sfsrv	\base\PBASE-F32-DriveUnit-PublicApi.ini 
    1.50 +		CREATE_OBJECT	TDriveUnit	driveUnit1
    1.51 +		COMMAND		driveUnit1	new		PBASE-F32-DriveUnit-PublicApi-0001-001-new_command01
    1.52 +		COMMAND		driveUnit1	convertToInt	PBASE-F32-DriveUnit-PublicApi-0001-001-convertToInt_command02
    1.53 +		COMMAND		driveUnit1	~		
    1.54 +	END_TEST_BLOCK	
    1.55 +END_TESTCASE 			PBASE-F32-DriveUnit-PublicApi-0001
    1.56 +
    1.57 +
    1.58 +START_TESTCASE 			PBASE-F32-DriveUnit-PublicApi-0002
    1.59 +//! @SYMTestCaseID		PBASE-F32-DriveUnit-PublicApi-0002
    1.60 +//! @SYMAPI			TDriveUnit
    1.61 +//! @SYMTestCaseDesc		Function TDriveUnit() test. Create an instance with a drive letter defined in TDriveName.
    1.62 +//!				Uses API elements: TDriveUnit().
    1.63 +//! @SYMTestActions		1. Call TDriveUnit(const TDesC &aDrive) to create a TDriveUnit object, passing "C" as parameter.
    1.64 +//!				2. Call Name() to get the drive unit name as text, passing "C:" as expected value for verification.
    1.65 +//! @SYMTestStatus		Implemented
    1.66 +//! @SYMTestPriority		Critical
    1.67 +//! @SYMTestExpectedResults	The TDriveUnit() method call is completed without errors, test returns "C:" as drive name.
    1.68 +//! @SYMTestType		CIT
    1.69 +	START_TEST_BLOCK	100	t_sfsrv	\base\PBASE-F32-DriveUnit-PublicApi.ini 
    1.70 +		CREATE_OBJECT	TDriveUnit	driveUnit1
    1.71 +		COMMAND		driveUnit1	new		PBASE-F32-DriveUnit-PublicApi-0002-001-new_command01
    1.72 +		COMMAND		driveUnit1	name		PBASE-F32-DriveUnit-PublicApi-0002-001-name_command02
    1.73 +		COMMAND		driveUnit1	~		
    1.74 +	END_TEST_BLOCK	
    1.75 +END_TESTCASE 			PBASE-F32-DriveUnit-PublicApi-0002
    1.76 +
    1.77 +
    1.78 +START_TESTCASE 			PBASE-F32-DriveUnit-PublicApi-0003
    1.79 +//! @SYMTestCaseID		PBASE-F32-DriveUnit-PublicApi-0003
    1.80 +//! @SYMAPI			TDriveUnit
    1.81 +//! @SYMTestCaseDesc		Function operator=() test. Assigns a new drive number lesser than KMaxDrives to the drive unit.
    1.82 +//!				Uses API elements: TDriveUnit(), operator=().
    1.83 +//! @SYMTestActions		1. Call TDriveUnit(TInt aDrive) to create a TDriveUnit object, passing "3" as parameter.
    1.84 +//!				2. Call operator=() to assign a new drive number, passing "4" as parameter.
    1.85 +//!				3. Call operator TInt() to convert the drive unit to an integer value, passing "4" as expected value,
    1.86 +//!				for verification.
    1.87 +//! @SYMTestStatus		Implemented
    1.88 +//! @SYMTestPriority		Critical
    1.89 +//! @SYMTestExpectedResults	The operator=() call is completed without errors, test returns "4" as drive number.
    1.90 +//! @SYMTestType		CIT
    1.91 +	START_TEST_BLOCK	100	t_sfsrv	\base\PBASE-F32-DriveUnit-PublicApi.ini 
    1.92 +		CREATE_OBJECT	TDriveUnit	driveUnit1
    1.93 +		COMMAND		driveUnit1	new		PBASE-F32-DriveUnit-PublicApi-0003-001-new_command01
    1.94 +		COMMAND		driveUnit1	=		PBASE-F32-DriveUnit-PublicApi-0003-001-_command02
    1.95 +		COMMAND		driveUnit1	convertToInt	PBASE-F32-DriveUnit-PublicApi-0003-001-convertToInt_command03
    1.96 +		COMMAND		driveUnit1	~		
    1.97 +	END_TEST_BLOCK	
    1.98 +END_TESTCASE 			PBASE-F32-DriveUnit-PublicApi-0003
    1.99 +
   1.100 +
   1.101 +START_TESTCASE 			PBASE-F32-DriveUnit-PublicApi-0004
   1.102 +//! @SYMTestCaseID		PBASE-F32-DriveUnit-PublicApi-0004
   1.103 +//! @SYMAPI			TDriveUnit
   1.104 +//! @SYMTestCaseDesc		Function operator=() test. Assigns a new drive letter to the drive unit.
   1.105 +//!				Uses API elements: TDriveUnit(), operator=().
   1.106 +//! @SYMTestActions		1. Call TDriveUnit(const TDesC &aDrive) to create a TDriveUnit object, passing "C" as parameter.
   1.107 +//!				2. Call operator=() to assign a new drive letter, passing "F" as parameter.
   1.108 +//!				3. Call Name() to get the drive unit name as text, passing "F:" as expected value for verification.
   1.109 +//! @SYMTestStatus		Implemented
   1.110 +//! @SYMTestPriority		Critical
   1.111 +//! @SYMTestExpectedResults	The operator=() call is completed without errors, test returns "F:" as drive name.
   1.112 +//! @SYMTestType		CIT
   1.113 +	START_TEST_BLOCK	100	t_sfsrv	\base\PBASE-F32-DriveUnit-PublicApi.ini 
   1.114 +		CREATE_OBJECT	TDriveUnit	driveUnit1
   1.115 +		COMMAND		driveUnit1	new		PBASE-F32-DriveUnit-PublicApi-0004-001-new_command01
   1.116 +		COMMAND		driveUnit1	=		PBASE-F32-DriveUnit-PublicApi-0004-001-_command02
   1.117 +		COMMAND		driveUnit1	name		PBASE-F32-DriveUnit-PublicApi-0004-001-name_command03
   1.118 +		COMMAND		driveUnit1	~		
   1.119 +	END_TEST_BLOCK	
   1.120 +END_TESTCASE 			PBASE-F32-DriveUnit-PublicApi-0004
   1.121 +
   1.122 +
   1.123 +START_TESTCASE 			PBASE-F32-DriveUnit-PublicApi-0005
   1.124 +//! @SYMTestCaseID		PBASE-F32-DriveUnit-PublicApi-0005
   1.125 +//! @SYMAPI			TDriveUnit
   1.126 +//! @SYMTestCaseDesc		Function operator TInt() test. Converts the drive unit to an integer value.
   1.127 +//!				Uses API elements: TDriveUnit(), operator TInt().
   1.128 +//! @SYMTestActions		1. Call TDriveUnit(const TDesC &aDrive) to create a TDriveUnit object, passing "C" as parameter.
   1.129 +//!				2. Call operator TInt() to convert the drive unit to an integer value, passing 2 as expected value.
   1.130 +//! @SYMTestStatus		Implemented
   1.131 +//! @SYMTestPriority		Critical
   1.132 +//! @SYMTestExpectedResults	The TInt() operator call is completed without errors, returning 2.
   1.133 +//! @SYMTestType		CIT
   1.134 +	START_TEST_BLOCK	100	t_sfsrv	\base\PBASE-F32-DriveUnit-PublicApi.ini 
   1.135 +		CREATE_OBJECT	TDriveUnit	driveUnit1
   1.136 +		COMMAND		driveUnit1	new		PBASE-F32-DriveUnit-PublicApi-0005-001-new_command01
   1.137 +		COMMAND		driveUnit1	convertToInt		PBASE-F32-DriveUnit-PublicApi-0005-001-convertToInt_command02
   1.138 +		COMMAND		driveUnit1	~		
   1.139 +	END_TEST_BLOCK	
   1.140 +END_TESTCASE 			PBASE-F32-DriveUnit-PublicApi-0005
   1.141 +
   1.142 +
   1.143 +START_TESTCASE 			PBASE-F32-DriveUnit-PublicApi-0006
   1.144 +//! @SYMTestCaseID		PBASE-F32-DriveUnit-PublicApi-0006
   1.145 +//! @SYMAPI			TDriveUnit
   1.146 +//! @SYMTestCaseDesc		Function Name() test. Gets the drive unit name as text.
   1.147 +//!				Uses API elements: TDriveUnit(), Name().
   1.148 +//! @SYMTestActions		1. Call TDriveUnit(TInt aDrive) to create a TDriveUnit object, passing "22" as parameter.
   1.149 +//!				2. Call Name() to get the drive unit name as text, passing "W:" as expected value.
   1.150 +//! @SYMTestStatus		Implemented
   1.151 +//! @SYMTestPriority		Critical
   1.152 +//! @SYMTestExpectedResults	The Name() method call is completed without errors, returning "W:".
   1.153 +//! @SYMTestType		CIT
   1.154 +	START_TEST_BLOCK	100	t_sfsrv	\base\PBASE-F32-DriveUnit-PublicApi.ini 
   1.155 +		CREATE_OBJECT	TDriveUnit	driveUnit1
   1.156 +		COMMAND		driveUnit1	new		PBASE-F32-DriveUnit-PublicApi-0006-001-new_command01
   1.157 +		COMMAND		driveUnit1	name		PBASE-F32-DriveUnit-PublicApi-0006-001-name_command02
   1.158 +		COMMAND		driveUnit1	~		
   1.159 +	END_TEST_BLOCK	
   1.160 +END_TESTCASE 			PBASE-F32-DriveUnit-PublicApi-0006
   1.161 +
   1.162 +
   1.163 +START_TESTCASE 			PBASE-F32-DriveUnit-PublicApi-0007
   1.164 +//! @SYMTestCaseID		PBASE-F32-DriveUnit-PublicApi-0007
   1.165 +//! @SYMAPI			TDriveUnit
   1.166 +//! @SYMTestCaseDesc		Function TDriveUnit() test. Create an instance with a drive letter defined in TDriveName, with a colon at the end.
   1.167 +//!				Uses API elements: TDriveUnit().
   1.168 +//! @SYMTestActions		1. Call TDriveUnit(const TDesC &aDrive) to create a TDriveUnit object, passing "C:" as parameter.
   1.169 +//!				2. Call Name() to get the drive unit name as text, passing "C:" as expected value for verification.
   1.170 +//! @SYMTestStatus		Implemented
   1.171 +//! @SYMTestPriority		Critical
   1.172 +//! @SYMTestExpectedResults	The TDriveUnit() method call is completed without errors, test returns "C:" as drive name.
   1.173 +//! @SYMTestType		CIT
   1.174 +	START_TEST_BLOCK	100	t_sfsrv	\base\PBASE-F32-DriveUnit-PublicApi.ini 
   1.175 +		CREATE_OBJECT	TDriveUnit	driveUnit1
   1.176 +		COMMAND		driveUnit1	new		PBASE-F32-DriveUnit-PublicApi-0007-001-new_command01
   1.177 +		COMMAND		driveUnit1	name		PBASE-F32-DriveUnit-PublicApi-0007-001-name_command02
   1.178 +		COMMAND		driveUnit1	~		
   1.179 +	END_TEST_BLOCK	
   1.180 +END_TESTCASE 			PBASE-F32-DriveUnit-PublicApi-0007
   1.181 +
   1.182 +
   1.183 +START_TESTCASE 			PBASE-F32-DriveUnit-PublicApi-0008
   1.184 +//! @SYMTestCaseID		PBASE-F32-DriveUnit-PublicApi-0008
   1.185 +//! @SYMAPI			TDriveUnit
   1.186 +//! @SYMTestCaseDesc		Function TDriveUnit() test. Create an instance with a drive letter defined in TDriveName, as lowercase.
   1.187 +//!				Uses API elements: TDriveUnit().
   1.188 +//! @SYMTestActions		1. Call TDriveUnit(const TDesC &aDrive) to create a TDriveUnit object, passing "c" as parameter.
   1.189 +//!				2. Call Name() to get the drive unit name as text, passing "C:" as expected value for verification.
   1.190 +//! @SYMTestStatus		Implemented
   1.191 +//! @SYMTestPriority		Critical
   1.192 +//! @SYMTestExpectedResults	The TDriveUnit() method call is completed without errors, test returns "C:" as drive name.
   1.193 +//! @SYMTestType		CIT
   1.194 +	START_TEST_BLOCK	100	t_sfsrv	\base\PBASE-F32-DriveUnit-PublicApi.ini 
   1.195 +		CREATE_OBJECT	TDriveUnit	driveUnit1
   1.196 +		COMMAND		driveUnit1	new		PBASE-F32-DriveUnit-PublicApi-0008-001-new_command01
   1.197 +		COMMAND		driveUnit1	name		PBASE-F32-DriveUnit-PublicApi-0008-001-name_command02
   1.198 +		COMMAND		driveUnit1	~		
   1.199 +	END_TEST_BLOCK	
   1.200 +END_TESTCASE 			PBASE-F32-DriveUnit-PublicApi-0008
   1.201 +
   1.202 +
   1.203 +START_TESTCASE 			PBASE-F32-DriveUnit-PublicApi-0009
   1.204 +//! @SYMTestCaseID		PBASE-F32-DriveUnit-PublicApi-0009
   1.205 +//! @SYMAPI			TDriveUnit
   1.206 +//! @SYMTestCaseDesc		Function operator=() test. Assigns a new lowercase drive letter to the drive unit.
   1.207 +//!				Uses API elements: TDriveUnit(), operator=().
   1.208 +//! @SYMTestActions		1. Call TDriveUnit(const TDesC &aDrive) to create a TDriveUnit object, passing "C" as parameter.
   1.209 +//!				2. Call operator=() to assign a new drive letter, passing "f" as parameter.
   1.210 +//!				3. Call Name() to get the drive unit name as text, passing "F:" as expected value for verification.
   1.211 +//! @SYMTestStatus		Implemented
   1.212 +//! @SYMTestPriority		Critical
   1.213 +//! @SYMTestExpectedResults	The operator=() call is completed without errors, test returns "F:" as drive name.
   1.214 +//! @SYMTestType		CIT
   1.215 +	START_TEST_BLOCK	100	t_sfsrv	\base\PBASE-F32-DriveUnit-PublicApi.ini 
   1.216 +		CREATE_OBJECT	TDriveUnit	driveUnit1
   1.217 +		COMMAND		driveUnit1	new		PBASE-F32-DriveUnit-PublicApi-0009-001-new_command01
   1.218 +		COMMAND		driveUnit1	=		PBASE-F32-DriveUnit-PublicApi-0009-001-_command02
   1.219 +		COMMAND		driveUnit1	name		PBASE-F32-DriveUnit-PublicApi-0009-001-name_command03
   1.220 +		COMMAND		driveUnit1	~		
   1.221 +	END_TEST_BLOCK	
   1.222 +END_TESTCASE 			PBASE-F32-DriveUnit-PublicApi-0009
   1.223 +
   1.224 +
   1.225 +START_TESTCASE 			PBASE-F32-DriveUnit-PublicApi-0010
   1.226 +//! @SYMTestCaseID		PBASE-F32-DriveUnit-PublicApi-0010
   1.227 +//! @SYMAPI			TDriveUnit
   1.228 +//! @SYMTestCaseDesc		Function TDriveUnit() test. Create a TDriveUnit instance.
   1.229 +//!				Uses API elements: TDriveUnit().
   1.230 +//! @SYMTestActions		1. Call TDriveUnit() to create a TDriveUnit object.
   1.231 +//! @SYMTestStatus		Implemented
   1.232 +//! @SYMTestPriority		Critical
   1.233 +//! @SYMTestExpectedResults	The TDriveUnit() method call is completed without errors.
   1.234 +//! @SYMTestType		CIT
   1.235 +	START_TEST_BLOCK	100	t_sfsrv	\base\PBASE-F32-DriveUnit-PublicApi.ini 
   1.236 +		CREATE_OBJECT	TDriveUnit	driveUnit1
   1.237 +		COMMAND		driveUnit1	new		PBASE-F32-DriveUnit-PublicApi-0010-001-new_command01
   1.238 +		COMMAND		driveUnit1	~		
   1.239 +	END_TEST_BLOCK	
   1.240 +END_TESTCASE 			PBASE-F32-DriveUnit-PublicApi-0010
   1.241 +
   1.242 +
   1.243 +// 	************************
   1.244 +//	***  NEGATIVE TESTS  ***
   1.245 +// 	************************
   1.246 +
   1.247 +
   1.248 +START_TESTCASE 			PBASE-F32-DriveUnit-PublicApi-1001
   1.249 +//! @SYMTestCaseID		PBASE-F32-DriveUnit-PublicApi-1001
   1.250 +//! @SYMAPI			TDriveUnit
   1.251 +//! @SYMTestCaseDesc		Function TDriveUnit() test. Create an instance with a drive number greater than KMaxDrives.
   1.252 +//!				Uses API elements: TDriveUnit().
   1.253 +//! @SYMTestActions		1. Call TDriveUnit(TInt aDrive) to create a TDriveUnit object, passing "100" as parameter.
   1.254 +//! @SYMTestStatus		Implemented
   1.255 +//! @SYMTestPriority		High Priority
   1.256 +//! @SYMTestExpectedResults	The TDriveUnit() method call will panic (FSCLIENT Code=0).
   1.257 +//! @SYMTestType		CIT
   1.258 +	START_TEST_BLOCK	100	t_sfsrv	\base\PBASE-F32-DriveUnit-PublicApi.ini 
   1.259 +		CREATE_OBJECT	TDriveUnit	driveUnit1
   1.260 +		COMMAND		driveUnit1	new		PBASE-F32-DriveUnit-PublicApi-1001-001-new_command01
   1.261 +		COMMAND		driveUnit1	~		
   1.262 +	END_TEST_BLOCK	!PanicCode=0	!PanicString="FSCLIENT panic"
   1.263 +END_TESTCASE 			PBASE-F32-DriveUnit-PublicApi-1001
   1.264 +
   1.265 +
   1.266 +START_TESTCASE 			PBASE-F32-DriveUnit-PublicApi-1002
   1.267 +//! @SYMTestCaseID		PBASE-F32-DriveUnit-PublicApi-1002
   1.268 +//! @SYMAPI			TDriveUnit
   1.269 +//! @SYMTestCaseDesc		Function operator=() test. Assigns a drive number greater than KMaxDrives to the drive unit.
   1.270 +//!				Uses API elements: TDriveUnit, operator=().
   1.271 +//! @SYMTestActions		1. Call TDriveUnit(TInt aDrive) to create a TDriveUnit object, passing "16" as parameter.
   1.272 +//!				2. Call operator=() to assign a new drive number, passing "100" as parameter.
   1.273 +//! @SYMTestStatus		Implemented
   1.274 +//! @SYMTestPriority		High Priority
   1.275 +//! @SYMTestExpectedResults	The TDriveUnit() method call will panic (FSCLIENT Code=0).
   1.276 +//! @SYMTestType		CIT
   1.277 +	START_TEST_BLOCK	100	t_sfsrv	\base\PBASE-F32-DriveUnit-PublicApi.ini 
   1.278 +		CREATE_OBJECT	TDriveUnit	driveUnit1
   1.279 +		COMMAND		driveUnit1	new		PBASE-F32-DriveUnit-PublicApi-1002-001-new_command01
   1.280 +		COMMAND		driveUnit1	=		PBASE-F32-DriveUnit-PublicApi-1002-001-_command02
   1.281 +		COMMAND		driveUnit1	~		
   1.282 +	END_TEST_BLOCK	!PanicCode=0	!PanicString="FSCLIENT panic"
   1.283 +END_TESTCASE			PBASE-F32-DriveUnit-PublicApi-1002
   1.284 +
   1.285 +
   1.286 +START_TESTCASE 			PBASE-F32-DriveUnit-PublicApi-1003
   1.287 +//! @SYMTestCaseID		PBASE-F32-DriveUnit-PublicApi-1003
   1.288 +//! @SYMAPI			TDriveUnit
   1.289 +//! @SYMTestCaseDesc		Function TDriveUnit() test. Create an instance with a drive number equal to KMaxDrives.
   1.290 +//!				Uses API elements: TDriveUnit().
   1.291 +//! @SYMTestActions		1. Call TDriveUnit(TInt aDrive) to create a TDriveUnit object, passing "26" as parameter.
   1.292 +//! @SYMTestStatus		Implemented
   1.293 +//! @SYMTestPriority		High Priority
   1.294 +//! @SYMTestExpectedResults	The TDriveUnit() method call will panic (FSCLIENT Code=0).
   1.295 +//! @SYMTestType		CIT
   1.296 +	START_TEST_BLOCK	100	t_sfsrv	\base\PBASE-F32-DriveUnit-PublicApi.ini 
   1.297 +		CREATE_OBJECT	TDriveUnit	driveUnit1
   1.298 +		COMMAND		driveUnit1	new		PBASE-F32-DriveUnit-PublicApi-1003-001-new_command01
   1.299 +		COMMAND		driveUnit1	~		
   1.300 +	END_TEST_BLOCK	!PanicCode=0	!PanicString="FSCLIENT panic"
   1.301 +END_TESTCASE 			PBASE-F32-DriveUnit-PublicApi-1003
   1.302 +
   1.303 +
   1.304 +START_TESTCASE 			PBASE-F32-DriveUnit-PublicApi-1004
   1.305 +//! @SYMTestCaseID		PBASE-F32-DriveUnit-PublicApi-1004
   1.306 +//! @SYMAPI			TDriveUnit
   1.307 +//! @SYMTestCaseDesc		Function TDriveUnit() test. Create an instance with a drive number bigger than KMaxDrives.
   1.308 +//!				Uses API elements: TDriveUnit().
   1.309 +//! @SYMTestActions		1. Call TDriveUnit(TInt aDrive) to create a TDriveUnit object, passing "50" as parameter.
   1.310 +//! @SYMTestStatus		Implemented
   1.311 +//! @SYMTestPriority		High Priority
   1.312 +//! @SYMTestExpectedResults	The TDriveUnit() method call will panic (FSCLIENT Code=0).
   1.313 +//! @SYMTestType		CIT
   1.314 +	START_TEST_BLOCK	100	t_sfsrv	\base\PBASE-F32-DriveUnit-PublicApi.ini 
   1.315 +		CREATE_OBJECT	TDriveUnit	driveUnit1
   1.316 +		COMMAND		driveUnit1	new		PBASE-F32-DriveUnit-PublicApi-1004-001-new_command01
   1.317 +		COMMAND		driveUnit1	~		
   1.318 +	END_TEST_BLOCK	!PanicCode=0	!PanicString="FSCLIENT panic"
   1.319 +END_TESTCASE 			PBASE-F32-DriveUnit-PublicApi-1004
   1.320 +
   1.321 +
   1.322 +START_TESTCASE 			PBASE-F32-DriveUnit-PublicApi-1005
   1.323 +//! @SYMTestCaseID		PBASE-F32-DriveUnit-PublicApi-1005
   1.324 +//! @SYMAPI			TDriveUnit
   1.325 +//! @SYMTestCaseDesc		Function operator=() test. Assigns a new drive number to the drive unit bigger than KMaxDrives.
   1.326 +//!				Uses API elements: TDriveUnit(), operator=().
   1.327 +//! @SYMTestActions		1. Call TDriveUnit(TInt aDrive) to create a TDriveUnit object, passing "7" as parameter.
   1.328 +//!				2. Call operator=() to assign a new drive number, passing "100" as parameter.
   1.329 +//! @SYMTestStatus		Implemented
   1.330 +//! @SYMTestPriority		High Priority
   1.331 +//! @SYMTestExpectedResults	The operator=() call will panic (FSCLIENT Code=0).
   1.332 +//! @SYMTestType		CIT
   1.333 +	START_TEST_BLOCK	100	t_sfsrv	\base\PBASE-F32-DriveUnit-PublicApi.ini 
   1.334 +		CREATE_OBJECT	TDriveUnit	driveUnit1
   1.335 +		COMMAND		driveUnit1	new		PBASE-F32-DriveUnit-PublicApi-1005-001-new_command01
   1.336 +		COMMAND		driveUnit1	=		PBASE-F32-DriveUnit-PublicApi-1005-001-_command02
   1.337 +		COMMAND		driveUnit1	~		
   1.338 +	END_TEST_BLOCK	!PanicCode=0	!PanicString="FSCLIENT panic"
   1.339 +END_TESTCASE			PBASE-F32-DriveUnit-PublicApi-1005
   1.340 +
   1.341 +
   1.342 +START_TESTCASE 			PBASE-F32-DriveUnit-PublicApi-1006
   1.343 +//! @SYMTestCaseID		PBASE-F32-DriveUnit-PublicApi-1006
   1.344 +//! @SYMAPI			TDriveUnit
   1.345 +//! @SYMTestCaseDesc		Function TDriveUnit() test. Create an instance with a malformed drive name.
   1.346 +//!				Uses API elements: TDriveUnit().
   1.347 +//! @SYMTestActions		1. Call TDriveUnit(const TDesC &aDrive) to create a TDriveUnit object, passing "##" as parameter.
   1.348 +//! @SYMTestStatus		Implemented
   1.349 +//! @SYMTestPriority		High Priority
   1.350 +//! @SYMTestExpectedResults	The TDriveUnit() method call will panic (FSCLIENT Code=1).
   1.351 +//! @SYMTestType		CIT
   1.352 +	START_TEST_BLOCK	100	t_sfsrv	\base\PBASE-F32-DriveUnit-PublicApi.ini 
   1.353 +		CREATE_OBJECT	TDriveUnit	driveUnit1
   1.354 +		COMMAND		driveUnit1	new		PBASE-F32-DriveUnit-PublicApi-1006-001-new_command01
   1.355 +		COMMAND		driveUnit1	~		
   1.356 +	END_TEST_BLOCK	!PanicCode=1	!PanicString="FSCLIENT panic"
   1.357 +END_TESTCASE			PBASE-F32-DriveUnit-PublicApi-1006
   1.358 +
   1.359 +
   1.360 +START_TESTCASE 			PBASE-F32-DriveUnit-PublicApi-1007
   1.361 +//! @SYMTestCaseID		PBASE-F32-DriveUnit-PublicApi-1007
   1.362 +//! @SYMAPI			TDriveUnit
   1.363 +//! @SYMTestCaseDesc		Function operator=() test. Assigns a malformed drive name to the drive unit.
   1.364 +//!				Uses API elements: TDriveUnit(), operator=().
   1.365 +//! @SYMTestActions		1. Call TDriveUnit(const TDesC &aDrive) to create a TDriveUnit object, passing "Z" as parameter.
   1.366 +//!				2. Call operator=() to assign a new drive letter, passing "##" as parameter.
   1.367 +//! @SYMTestStatus		Implemented
   1.368 +//! @SYMTestPriority		High Priority
   1.369 +//! @SYMTestExpectedResults	The operator=() call will panic (FSCLIENT Code=1).
   1.370 +//! @SYMTestType		CIT
   1.371 +	START_TEST_BLOCK	100	t_sfsrv	\base\PBASE-F32-DriveUnit-PublicApi.ini 
   1.372 +		CREATE_OBJECT	TDriveUnit	driveUnit1
   1.373 +		COMMAND		driveUnit1	new		PBASE-F32-DriveUnit-PublicApi-1007-001-new_command01
   1.374 +		COMMAND		driveUnit1	=		PBASE-F32-DriveUnit-PublicApi-1007-001-_command02
   1.375 +		COMMAND		driveUnit1	~		
   1.376 +	END_TEST_BLOCK	!PanicCode=1	!PanicString="FSCLIENT panic"
   1.377 +END_TESTCASE			PBASE-F32-DriveUnit-PublicApi-1007